38 cond_init(&m_condition);
43 cond_destroy(&m_condition);
48 cond_broadcast(&m_condition);
53 cond_signal(&m_condition);
56 bool Wait(
CMutex& mutex, P& predicate)
59 cond_wait(&m_condition, mutex.NativeHandle());
63 bool Wait(
CMutex& mutex, P& predicate,
unsigned timeout)
69 timeout = _timeout.TimeLeft();
72 cond_timedwait(&m_condition, mutex.NativeHandle(), timeout);
79 cond_timedwait(&m_condition, mutex.NativeHandle(), timeout.TimeLeft());
80 return (timeout.TimeLeft() > 0 ? true :
false);
84 condition_t m_condition;