25 if(
handle && lock.
handle && platform && platform->getThread())
31 if(
handle && platform && platform->getThread())
32 platform->getThread()->signalCond(
handle);
void signal()
Wakes every thread currently blocked in wait() on this condition variable.
void * handle
Backend-assigned condition variable handle.
void wait(Mutex &lock)
Unlocks lock and blocks until signal() is called, then reacquires lock before returning.
A simple mutual-exclusion lock.
void * handle
Backend-assigned mutex handle.
virtual void destroyCond(void *cond)=0
Destroys a condition variable created by createCond(). No thread may be waiting on it.
virtual void * createCond()=0
Creates a condition variable.