MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking and unlocking it. More...
#include <MutexLock.hpp>
Public Member Functions | |
MutexLock (MutexInterface &mutex) | |
~MutexLock () | |
Protected Member Functions | |
MutexLock () | |
Protected Attributes | |
MutexInterface * | _mutex |
MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking and unlocking it.
Definition at line 51 of file MutexLock.hpp.
|
inline |
Create a lock on a Mutex object.
mutex | The Mutex to be locked. |
Definition at line 60 of file MutexLock.hpp.
|
inline |
Remove a lock from a Mutex object
Definition at line 69 of file MutexLock.hpp.
|
inlineprotected |
Definition at line 77 of file MutexLock.hpp.
|
protected |
Definition at line 75 of file MutexLock.hpp.