Conditions allow threads to signal an event and to wait for such a signal, respectively. More...
Public Member Functions | |
Condition () | |
Constructor. More... |
|
~Condition () | |
Destructor. More... |
|
void | wait () |
Waits for the condition to be signaled. More... |
|
bool | timed_wait (Float64 timeout) |
Waits for the condition to be signaled until a given timeout. More... |
|
void | signal () |
Signals the condition. More... |
|
void | reset () |
Resets the condition. More... |
|
Conditions allow threads to signal an event and to wait for such a signal, respectively.
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
|
inline |
|
inline |
Waits for the condition to be signaled until a given timeout.
If the condition is already signaled at this time the call will return immediately.
timeout | Maximum time period (in seconds) to wait for the condition to be signaled. |
true
if the timeout was hit, and false
if the condition was signaled.
|
inline |
Waits for the condition to be signaled.
If the condition is already signaled at this time the call will return immediately.