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>
Public Member Functions | |
AutoMutex (Mutex &) | |
Constructor: will acquire the underlying mutex object. | |
AutoMutex (const Mutex &) | |
~AutoMutex () | |
Clean-up: will release the underlying mutex object. |
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.
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 | ( | ) |