IBR-DTNSuite  0.8
ibrcommon::RWMutex Class Reference

#include <RWMutex.h>

List of all members.

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

Detailed Description

Definition at line 16 of file RWMutex.h.


Member Enumeration Documentation

Enumerator:
LOCK_READONLY 
LOCK_READWRITE 

Definition at line 19 of file RWMutex.h.


Constructor & Destructor Documentation

Definition at line 13 of file RWMutex.cpp.

References _rwlock.

Definition at line 18 of file RWMutex.cpp.

References _rwlock.


Member Function Documentation

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.


Member Data Documentation

pthread_rwlock_t ibrcommon::RWMutex::_rwlock [protected]

Definition at line 32 of file RWMutex.h.

Referenced by leave(), RWMutex(), and ~RWMutex().


The documentation for this class was generated from the following files: