wibble::sys::Mutex Class Reference

#include <mutex.h>

List of all members.


Detailed Description

pthread mutex wrapper

Public Member Functions

 Mutex (bool recursive=false)
 ~Mutex ()
bool trylock ()
void lock ()
 Lock the mutex Normally it's better to use MutexLock.
void unlock ()
 Unlock the mutex Normally it's better to use MutexLock.
void reinit ()
 Reinitialize the mutex.

Protected Attributes

pthread_mutex_t mutex

Friends

class Condition

Constructor & Destructor Documentation

wibble::sys::Mutex::Mutex ( bool  recursive = false  )  [inline]

References mutex.

wibble::sys::Mutex::~Mutex (  )  [inline]

References mutex.


Member Function Documentation

bool wibble::sys::Mutex::trylock (  )  [inline]

References mutex.

void wibble::sys::Mutex::lock (  )  [inline]

Lock the mutex Normally it's better to use MutexLock.

References mutex.

Referenced by wibble::sys::MutexLock::MutexLock().

void wibble::sys::Mutex::unlock (  )  [inline]

Unlock the mutex Normally it's better to use MutexLock.

References mutex.

Referenced by wibble::sys::MutexLock::~MutexLock().

void wibble::sys::Mutex::reinit (  )  [inline]

Reinitialize the mutex.

References mutex.


Friends And Related Function Documentation

friend class Condition [friend]


Member Data Documentation

pthread_mutex_t wibble::sys::Mutex::mutex [protected]


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

Generated on Wed Jun 18 04:26:09 2008 for wibble by  doxygen 1.5.6