lobot::AutoMutex Class Reference

Mutexes created on the stack that acquire an "underlying" mutex on initialization and release it when the object goes out of scope. More...

#include <Robots/LoBot/thread/LoMutex.H>

Collaboration diagram for lobot::AutoMutex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AutoMutex (Mutex &)
 Constructor: will acquire the underlying mutex object.
 AutoMutex (const Mutex &)
 ~AutoMutex ()
 Clean-up: will release the underlying mutex object.

Detailed Description

Mutexes created on the stack that acquire an "underlying" mutex on initialization and release it when the object goes out of scope.

Definition at line 99 of file LoMutex.H.


Constructor & Destructor Documentation

lobot::AutoMutex::AutoMutex ( Mutex m  ) 

Constructor: will acquire the underlying mutex object.

Definition at line 101 of file LoMutex.C.

References lobot::Mutex::acquire().

lobot::AutoMutex::AutoMutex ( const Mutex m  ) 

Constructor for const Mutex objects (e.g., when called from const member functions in client classes).

Definition at line 107 of file LoMutex.C.

References lobot::Mutex::acquire().

lobot::AutoMutex::~AutoMutex (  ) 

Clean-up: will release the underlying mutex object.

Definition at line 132 of file LoMutex.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:35 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3