Lock for simplifying mutex handling. More...
#include <Lock.h>

Public Member Functions | |
| Lock (Mutex *mutex) | |
| Constructor. More... | |
| ~Lock () | |
| Destructor. More... | |
Private Attributes | |
| Mutex * | mMutex |
Additional Inherited Members | |
Private Member Functions inherited from alvar::Uncopyable | |
| Uncopyable () | |
| Constructor. More... | |
| ~Uncopyable () | |
| Destructor. More... | |
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.
|
inline |