class Cond
MyCpp::Cond

Condition - a primitive for thread synchronization.

Methods
void
signal ()
Triggers this condition, causing exactly one of the waiting threads to wake up.
void
wait (Mutex &mutex)
Waits until the current thread is woken up on this condition.
bool
timedWait (Mutex &mutex, GTimeVal *tv)
Waits until the current thread is woken up or a timeout occurs.
signal

Triggers this condition, causing exactly one of the waiting threads to wake up.

void signal ()
wait

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.
timedWait

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.