#include <Mutex.h>
Inherits ibrcommon::MutexInterface.
Inherited by dtn::core::AbstractWorker, dtn::routing::NeighborDatabase, 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_NORMAL) | |
| virtual | ~Mutex () |
| virtual void | trylock () throw (MutexException) |
| virtual void | enter () throw (MutexException) |
| virtual void | leave () throw (MutexException) |
Static Public Member Functions | |
| static MutexInterface & | dummy () |
Protected Attributes | |
| pthread_mutex_t | m_mutex |
| pthread_mutexattr_t | m_attr |
Definition at line 38 of file Mutex.h.
| ibrcommon::Mutex::Mutex | ( | MUTEX_TYPE | type = MUTEX_NORMAL |
) |
| ibrcommon::Mutex::~Mutex | ( | ) | [virtual] |
| MutexInterface & ibrcommon::Mutex::dummy | ( | ) | [static] |
| void ibrcommon::Mutex::enter | ( | ) | throw (MutexException) [virtual] |
Implements ibrcommon::MutexInterface.
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 39 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::enter(), dtn::core::SQLiteBundleStorage::enter(), and dtn::core::DataStorage::istream::istream().
| void ibrcommon::Mutex::leave | ( | ) | throw (MutexException) [virtual] |
Implements ibrcommon::MutexInterface.
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 77 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::leave(), dtn::core::SQLiteBundleStorage::leave(), and dtn::core::DataStorage::istream::~istream().
| void ibrcommon::Mutex::trylock | ( | ) | throw (MutexException) [virtual] |
Implements ibrcommon::MutexInterface.
Reimplemented in ibrcommon::BLOB::Reference.
Definition at line 24 of file Mutex.cpp.
References m_mutex.
Referenced by ibrcommon::BLOB::Reference::trylock().
pthread_mutexattr_t ibrcommon::Mutex::m_attr [protected] |
pthread_mutex_t ibrcommon::Mutex::m_mutex [protected] |
1.7.1