IBR-DTNSuite
0.8
|
#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.
Definition at line 39 of file Mutex.cpp.
References m_mutex.
Referenced by dtn::storage::DataStorage::istream::istream().
void ibrcommon::Mutex::leave | ( | ) | throw (MutexException) [virtual] |
void ibrcommon::Mutex::trylock | ( | ) | throw (MutexException) [virtual] |
pthread_mutexattr_t ibrcommon::Mutex::m_attr [protected] |
pthread_mutex_t ibrcommon::Mutex::m_mutex [protected] |