l4snd::Mutex::TryLocker Class Reference

Helper class to request and release a mutex by pure presence. More...

Collaboration diagram for l4snd::Mutex::TryLocker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TryLocker (Mutex &mtx)
 Create object and request mutex.
 ~TryLocker ()
 Destroys object and releases mutex.
bool isLocked ()
 Checks if the mutex has been succesfully requested.


Detailed Description

Helper class to request and release a mutex by pure presence.

Definition at line 76 of file mutex.h.


Constructor & Destructor Documentation

l4snd::Mutex::TryLocker::TryLocker ( Mutex mtx  ) 

Create object and request mutex.

Parameters:
mtx mutex to request.

Definition at line 150 of file mutex.cpp.

References l4snd::Mutex::tryLock().


Member Function Documentation

bool l4snd::Mutex::TryLocker::isLocked (  ) 

Checks if the mutex has been succesfully requested.

Returns:
false: the mutex was not available

Definition at line 170 of file mutex.cpp.

Referenced by ~TryLocker().


The documentation for this class was generated from the following files:
Generated on Sat Nov 24 14:41:26 2007 for log4sendpp by  doxygen 1.5.3