#include <thread.h>
Public Member Functions | |
Condition () | |
~Condition () | |
void | signal () |
void | broadcast () |
void | wait (Mutex &m) |
bool | wait (Mutex &m, const TimeVal &tmout) |
bool | wait (Mutex &m, unsigned long tmout) |
A class representing a condition that can be waited upon.
|
Constructor.
|
|
Destructor.
|
|
Broadcast condition. Restarts all threads waiting on condition. |
|
Signal condition. Restarts exactly one thread hung on condition. |
|
Timed wait. Unlocks a mutex while waiting on a condition, then reaquires lock with a fixed maximum duration.
|
|
Timed wait. Unlocks a mutex while waiting on a condition, then reaquires lock with a fixed maximum duration.
|
|
Wait for condition. Unlocks a mutex while waiting on a condition, then reaquires lock.
|