condition_variable Class
Use the condition_variable class to wait for an event when you have a mutex of type unique_lock<mutex>. Objects of this type may have better performance than objects of type condition_variable_any<unique_lock<mutex>>.
class condition_variable;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a condition_variable object. |
Public Methods
Name |
Description |
---|---|
Returns the implementation-specific type representing the condition_variable handle. |
|
Unblocks all threads that are waiting for the condition_variable object. |
|
Unblocks one of the threads that are waiting for the condition_variable object. |
|
Blocks a thread. |
|
Blocks a thread, and sets a time interval after which the thread unblocks. |
|
Blocks a thread, and sets a maximum point in time at which the thread unblocks. |
Requirements
Header: condition_variable
Namespace: std