A simple implementation of a mutex guard. More...
#include <mutexguard.h>
Public Member Functions | |
MutexGuard (Mutex *mutex) | |
MutexGuard (Mutex &mutex) | |
~MutexGuard () |
A simple implementation of a mutex guard.
Definition at line 31 of file mutexguard.h.
MutexGuard | ( | Mutex * | mutex | ) | [inline] |
Contructs a new simple mutex guard and locks the supplied Mutex.
mutex | The Mutex to guard. |
Definition at line 38 of file mutexguard.h.
MutexGuard | ( | Mutex & | mutex | ) | [inline] |
Contructs a new simple mutex guard and locks the supplied Mutex.
mutex | The Mutex to guard. |
Definition at line 44 of file mutexguard.h.
~MutexGuard | ( | ) | [inline] |
Destructor. Releases the guarded Mutex.
Definition at line 49 of file mutexguard.h.