#include <condition_variable.hh>
Basic operations | |
| ConditionVariable () | |
| ~ConditionVariable () | |
Public Member Functions | |
| void | broadcast () |
| void | signal () |
| void | acquire_then_signal (Mutex &) |
| void | wait (Mutex &) |
| bool | timed_wait (Mutex &, const unsigned n) |
If threading is disabled, waiting and signalling are no-ops.
| void paludis::ConditionVariable::broadcast | ( | ) |
Broadcast to all waiting threads.
| void paludis::ConditionVariable::signal | ( | ) |
Signal one waiting thread.
| void paludis::ConditionVariable::acquire_then_signal | ( | Mutex & | ) |
Acquire the specified Mutex, then signal.
| void paludis::ConditionVariable::wait | ( | Mutex & | ) |
Wait, using the specified Mutex for synchronisation.
| bool paludis::ConditionVariable::timed_wait | ( | Mutex & | , | |
| const unsigned | n | |||
| ) |
Wait, using the specified Mutex for synchronisation, but return false if more than n seconds elapse.
1.5.5