137 int retVal = pthread_cond_wait(
cond,
mutex);
149 int retVal = pthread_cond_signal(
cond);
161 int retVal = pthread_cond_broadcast(
cond);
Wrapper class for POSIX condition variables.
int broadcast()
Wake all waiting threads.
~UseCondVar()
Destructor (does not destroy the condition variable)
int wait()
Wait for the condition variable to be signaled.
int signal()
Signal one waiting thread.
UseCondVar(pthread_cond_t *c, pthread_mutex_t *m)
Construct wrapper for condition variable and mutex.