Condition variable
This is a standard pthread condition variable.
Fields
-
inner: pthread_cond_t
Methods
impl CondVar { ... }
-
fn new() -> 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. -
fn notify_one(self: &mut CondVar)
Signals a condition variable, waking up one waiting thread.
-
fn notify_all(self: &mut CondVar)
Signals a condition variable, waking up all waiting threads.