144 int retVal = pthread_cond_wait(
cond,
mutex);
156 int retVal = pthread_cond_signal(
cond);
168 int retVal = pthread_cond_broadcast(
cond);
Legacy 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.
FooMap m(5, fst_unit_pair_hash, snd_unit_pair_hash)