Synchronization primitive for blocking and waking threads.
More...
#include <condition_variable_api.h>
Synchronization primitive for blocking and waking threads.
Definition at line 15 of file condition_variable_api.h.
◆ condition_variable() [1/2]
| roo_threads::doc::condition_variable::condition_variable |
( |
| ) |
|
|
noexcept |
Constructs a condition variable.
◆ condition_variable() [2/2]
◆ notify_all()
| void roo_threads::doc::condition_variable::notify_all |
( |
| ) |
|
|
noexcept |
Wakes all waiting threads.
◆ notify_one()
| void roo_threads::doc::condition_variable::notify_one |
( |
| ) |
|
|
noexcept |
Wakes one waiting thread.
◆ operator=()
◆ wait() [1/2]
Waits until notified; may wake spuriously.
- Parameters
-
| lock | lock associated with the condition variable. |
◆ wait() [2/2]
Waits until predicate becomes true.
- Parameters
-
| lock | lock associated with the condition variable. |
| pred | predicate to evaluate after wakeups. |
◆ wait_for() [1/2]
Waits until notified or duration elapses.
- Parameters
-
| lock | lock associated with the condition variable. |
| duration | relative timeout duration. |
- Returns
- timeout status.
◆ wait_for() [2/2]
Waits until predicate becomes true or duration elapses.
- Parameters
-
| lock | lock associated with the condition variable. |
| duration | relative timeout duration. |
| p | predicate to evaluate after wakeups. |
- Returns
- true if predicate became true.
◆ wait_until() [1/2]
Waits until notified or deadline is reached.
- Parameters
-
| lock | lock associated with the condition variable. |
| when | absolute timeout point. |
- Returns
- timeout status.
◆ wait_until() [2/2]
Waits until predicate becomes true or deadline is reached.
- Parameters
-
| lock | lock associated with the condition variable. |
| when | absolute timeout point. |
| p | predicate to evaluate after wakeups. |
- Returns
- true if predicate became true.
The documentation for this class was generated from the following file: