Lock for simplifying mutex handling. More...
#include <Lock.h>
Public Member Functions | |
Lock (Mutex *mutex) | |
Constructor. | |
~Lock () | |
Destructor. | |
Private Attributes | |
Mutex * | mMutex |
Lock for simplifying mutex handling.
Lock class for simplifying mutex handling. Simply pass a mutex to the constructor and the mutex will be locked. When the lock is destroyed, the mutex will be unlocked.
alvar::Lock::Lock | ( | Mutex * | mutex | ) | [inline] |
alvar::Lock::~Lock | ( | ) | [inline] |
Mutex* alvar::Lock::mMutex [private] |