wibble 1.1
Public Member Functions | Public Attributes | Friends | List of all members
wibble::sys::MutexLockT< Mutex > Class Template Reference

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

#include <mutex.h>

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

Public Member Functions

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

Public 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

◆ MutexLockT()

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

◆ ~MutexLockT()

Member Function Documentation

◆ checkYield()

template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::checkYield ( )
inline

◆ drop()

template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::drop ( )
inline

◆ reclaim()

template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::reclaim ( )
inline

◆ setYield()

template<typename Mutex >
void wibble::sys::MutexLockT< Mutex >::setYield ( bool  y)
inline

Friends And Related Symbol Documentation

◆ Condition

template<typename Mutex >
friend class Condition
friend

Member Data Documentation

◆ locked

◆ mutex

◆ yield


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