MADNESS
version 0.9
|
Simple wrapper for Pthread condition variable with its own mutex. More...
#include <worldmutex.h>
Public Member Functions | |
PthreadConditionVariable () | |
pthread_mutex_t & | get_pthread_mutex () |
void | lock () const |
void | unlock () const |
void | wait () const |
You should have acquired the mutex before entering here. More... | |
void | signal () const |
void | broadcast () const |
virtual | ~PthreadConditionVariable () |
Simple wrapper for Pthread condition variable with its own mutex.
Use this when you need to block without consuming cycles. Scheduling granularity is at the level of kernel ticks.
|
inline |
|
inlinevirtual |
|
inline |
References MADNESS_EXCEPTION.
|
inline |
|
inline |
References MADNESS_EXCEPTION.
|
inline |
References MADNESS_EXCEPTION.
Referenced by madness::DQueue< madness::PoolTaskInterface * >::push_front().
|
inline |
References MADNESS_EXCEPTION.
|
inline |
You should have acquired the mutex before entering here.
Referenced by madness::DQueue< madness::PoolTaskInterface * >::pop_front().