IBR-DTNSuite
0.8
|
#include <RWMutex.h>
Public Types | |
enum | LockState { LOCK_READONLY = 0, LOCK_READWRITE = 1 } |
Public Member Functions | |
RWMutex () | |
virtual | ~RWMutex () |
virtual void | trylock (LockState state) throw (MutexException) |
virtual void | enter (LockState state) throw (MutexException) |
virtual void | leave () throw (MutexException) |
Protected Attributes | |
pthread_rwlock_t | _rwlock |
Definition at line 13 of file RWMutex.cpp.
References _rwlock.
ibrcommon::RWMutex::~RWMutex | ( | ) | [virtual] |
Definition at line 18 of file RWMutex.cpp.
References _rwlock.
void ibrcommon::RWMutex::enter | ( | LockState | state | ) | throw (MutexException) [virtual] |
Definition at line 48 of file RWMutex.cpp.
Referenced by ibrcommon::RWLock::RWLock().
void ibrcommon::RWMutex::leave | ( | ) | throw (MutexException) [virtual] |
Definition at line 61 of file RWMutex.cpp.
References _rwlock.
Referenced by ibrcommon::RWLock::~RWLock().
void ibrcommon::RWMutex::trylock | ( | LockState | state | ) | throw (MutexException) [virtual] |
Definition at line 23 of file RWMutex.cpp.
pthread_rwlock_t ibrcommon::RWMutex::_rwlock [protected] |
Definition at line 32 of file RWMutex.h.
Referenced by leave(), RWMutex(), and ~RWMutex().