|
IBR-DTNSuite 0.6
|
#include <Mutex.h>


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 |
| 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 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 dtn::core::SQLiteBundleStorage::leave().
| 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.
pthread_mutexattr_t ibrcommon::Mutex::m_attr [protected] |
pthread_mutex_t ibrcommon::Mutex::m_mutex [protected] |