|
| __init__ (Mutex mutex) |
| You must pass in a Mutex to the condition variable constructor. This mutex may be shared by other condition variables, if desired. It is the caller's responsibility to ensure the Mutex object does not destruct during the lifetime of the condition variable. More...
|
|
Mutex | getMutex () |
| Returns the mutex associated with this condition variable. More...
|
|
Public Member Functions inherited from ConditionVarFullDirect |
MutexDirect | getMutex () |
| Returns the mutex associated with this condition variable. More...
|
|
| notify () |
| Informs one of the other threads who are currently blocked on wait() that the relevant condition has changed. If multiple threads are currently waiting, at least one of them will be woken up, although there is no way to predict which one. It is possible that more than one thread will be woken up. More...
|
|
| notifyAll () |
| Informs all of the other threads who are currently blocked on wait() that the relevant condition has changed. More...
|
|
| output (Ostream out) |
| This method is declared virtual in ConditionVarFullDebug, but non-virtual in ConditionVarFullDirect. More...
|
|
| wait () |
| Waits on the condition. The caller must already be holding the lock associated with the condition variable before calling this function. More...
|
|
| wait (double timeout) |
| Waits on the condition, with a timeout. The function will return when the condition variable is notified, or the timeout occurs. There is no way to directly tell which happened, and it is possible that neither in fact happened (spurious wakeups are possible). More...
|
|