Condition - a primitive for thread synchronization.
| void |
Triggers this condition, causing exactly one of
the waiting threads to wake up. | |||
| void |
Waits until the current thread is woken up
on this condition. | |||
| bool |
Waits until the current thread is woken up
or a timeout occurs. |
Triggers this condition, causing exactly one of the waiting threads to wake up.
void signal ()
Waits until the current thread is woken up on this condition.
A protection mutex is required. The mutex must be locked prior to calling this method.
void wait (Mutex &mutex)
| mutex : | The protection mutex. |
Waits until the current thread is woken up or a timeout occurs.
A protection mutex is required. The mutex must be locked prior to calling this method.
bool timedWait (Mutex &mutex, GTimeVal *tv)
| mutex : | The protection mutex. |
| tv : | A pointer to GTimeVal structure, see glib reference manual for details. |