#include <Mutex.h>
Inherited by dtn::core::AbstractWorker, ibrcommon::BLOB, ibrcommon::BLOB::Reference, and ibrcommon::Conditional.
Public Types | |
| enum | MUTEX_TYPE { MUTEX_NORMAL = PTHREAD_MUTEX_NORMAL, MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE, MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK } |
Public Member Functions | |
| Mutex (MUTEX_TYPE type=MUTEX_ERRORCHECK) | |
| virtual | ~Mutex () |
| virtual void | trylock () throw (MutexException) |
| virtual void | enter () throw (MutexException) |
| virtual void | leave () throw (MutexException) |
Protected Attributes | |
| pthread_mutex_t | m_mutex |
Definition at line 17 of file Mutex.h.
| ibrcommon::Mutex::Mutex | ( | MUTEX_TYPE | type = MUTEX_ERRORCHECK |
) |
| void ibrcommon::Mutex::enter | ( | ) | throw (MutexException) [virtual] |
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 36 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::enter(), and ibrcommon::MutexLock::MutexLock().
| void ibrcommon::Mutex::leave | ( | ) | throw (MutexException) [virtual] |
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 74 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::leave(), and ibrcommon::MutexLock::~MutexLock().
| void ibrcommon::Mutex::trylock | ( | ) | throw (MutexException) [virtual] |
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 21 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::trylock().
pthread_mutex_t ibrcommon::Mutex::m_mutex [protected] |
1.7.1