#include <pthreadcondition.h>
Public Member Functions | |
| PthreadCondition (PthreadLock &l) throw () | |
| Condition constructor. | |
| void | wait () throw () |
| Waits for this condition to be notified by notify() or notifyall(). | |
| void | notify () throw () |
| Wakes up one thread wait()ing for this condition. | |
| void | notifyall () throw () |
| Wakes up all threads wait()ing for this condition. | |
This really contains a pthread_mutex_t and a reference to a PthreadLock.
| PthreadCondition::PthreadCondition | ( | PthreadLock & | l | ) | throw () |
Condition constructor.
| l | is the lock to be unlocked while waiting |
| void PthreadCondition::wait | ( | ) | throw () |
Waits for this condition to be notified by notify() or notifyall().
The lock passed to the constructor is released when invoking wait() and acquired before returning from it.
1.5.1