struct CondVar { ... }
Condition variable
This is a standard pthread condition variable.
Fields
-
inner: pthread_cond_t
Methods
impl CondVar { ... }
-
Creates a new condition variable.
-
Waits on a condition variable.
May return spuriously.
-
Waits on a condition variable with a timeout.
Returns
true
if the condition variable was signaled,false
otherwise. However, since the condition variable can wake up spuriously, it is not guaranteed that the condition is actually satisfied. -
Signals a condition variable, waking up one waiting thread.
-
Signals a condition variable, waking up all waiting threads.