MADNESS
version 0.9
|
Recursive mutex using pthread mutex operations. More...
#include <worldmutex.h>
Public Member Functions | |
RecursiveMutex () | |
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... | |
~RecursiveMutex () | |
Recursive mutex using pthread mutex operations.
madness::RecursiveMutex::RecursiveMutex | ( | ) |
Make and initialize a mutex ... initial state is unlocked.
References MADNESS_EXCEPTION.
|
inline |
|
inline |
Acquire the mutex waiting if necessary.
References MADNESS_EXCEPTION.
Referenced by madness::detail::DeferredCleanup::destroy(), and madness::detail::DeferredCleanup::do_cleanup().
|
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.
|
inline |
Free a mutex owned by this thread.
References MADNESS_EXCEPTION.
Referenced by madness::detail::DeferredCleanup::destroy(), and madness::detail::DeferredCleanup::do_cleanup().