MADNESS
version 0.9
|
Mutex using pthread mutex operations. More...
#include <worldmutex.h>
Public Member Functions | |
Mutex (int junk=0) | |
Make and initialize a mutex ... initial state is unlocked. More... | |
bool | try_lock () const |
Try to acquire the mutex ... return true on success, false on failure. More... | |
void | lock () const |
Acquire the mutex waiting if necessary. More... | |
void | unlock () const |
Free a mutex owned by this thread. More... | |
pthread_mutex_t * | ptr () const |
Return a pointer to the pthread mutex for use by a condition variable. More... | |
virtual | ~Mutex () |
Mutex using pthread mutex operations.
|
inline |
Make and initialize a mutex ... initial state is unlocked.
References MADNESS_EXCEPTION.
|
inlinevirtual |
|
inline |
Acquire the mutex waiting if necessary.
References MADNESS_EXCEPTION.
Referenced by madness::WorldAmInterface::free_managed_buffers(), and madness::WorldAmInterface::WorldAmInterface().
|
inline |
Return a pointer to the pthread mutex for use by a condition variable.
|
inline |
Try to acquire the mutex ... return true on success, false on failure.
Referenced by madness::try_two_locks().
|
inline |
Free a mutex owned by this thread.
References MADNESS_EXCEPTION.
Referenced by madness::WorldAmInterface::free_managed_buffers(), madness::try_two_locks(), and madness::WorldAmInterface::WorldAmInterface().