#include <Condition.h>
Public Methods | |
Condition () throw (Synchronization_Exception) | |
~Condition () throw () | |
void | signal () throw (Synchronization_Exception) |
void | broadcast () throw (Synchronization_Exception) |
void | wait (Lockable &) throw (Synchronization_Exception) |
bool | wait (Lockable &, unsigned long) throw (Synchronization_Exception) |
A Condition variable must be used in conjunction with a Lockable object The lockable object should be locked prior to calling one of the wait() functions. That object will be released while the caller is blocked. When the thread that has been blocked by the condition receives a signal that lockable object will be locked once again before the wait() returns.
|
Create a new condition variable
|
|
Destroy Condition object |
|
Wake ALL threads waiting on this condition variable.
|
|
Wake ONE thread waiting on this condition variable.
|
|
Wait for this Condition object to be signaled for at most 'ms' milliseconds.
|
|
Wait for this Condition object to be signaled.
|