Created
February 9, 2022 02:20
-
-
Save soruh/23b5d0a7df7ed08b4a0ff89cddb1b5ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
unique_lock lock(mutex); // takes the lock | |
convar.wait(mutex) // wait | |
// do stuff with the lock | |
} | |
// the lock is no longer held |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment