wibble::sys::MutexLockT< Mutex > Class Template Reference

Acquire a mutex lock, RAII-style. More...

#include <mutex.h>

Collaboration diagram for wibble::sys::MutexLockT< Mutex >:
[legend]

List of all members.

Public Member Functions

 MutexLockT (Mutex &m)
 ~MutexLockT ()
void drop ()
void reclaim ()
void setYield (bool y)
void checkYield ()

Protected Attributes

Mutexmutex
bool locked
bool yield

Friends

class Condition

Detailed Description

template<typename Mutex>
class wibble::sys::MutexLockT< Mutex >

Acquire a mutex lock, RAII-style.


Constructor & Destructor Documentation

template<typename Mutex >
wibble::sys::MutexLockT< Mutex >::MutexLockT ( Mutex m  )  [inline]
template<typename Mutex >
wibble::sys::MutexLockT< Mutex >::~MutexLockT (  )  [inline]

Member Function Documentation

template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::checkYield (  )  [inline]
template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::drop (  )  [inline]
template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::reclaim (  )  [inline]
template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::setYield ( bool  y  )  [inline]

Friends And Related Function Documentation

template<typename Mutex >
friend class Condition [friend]

Member Data Documentation

template<typename Mutex >
bool wibble::sys::MutexLockT< Mutex >::locked [protected]
template<typename Mutex >
Mutex& wibble::sys::MutexLockT< Mutex >::mutex [protected]
template<typename Mutex >
bool wibble::sys::MutexLockT< Mutex >::yield [protected]

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

Generated on Mon Jan 4 21:35:42 2010 for wibble by  doxygen 1.6.1