#include <mutex.h>
Public Member Functions | |
MutexLocker (Mutex *mutex) | |
~MutexLocker () | |
Private Attributes | |
Mutex * | m_mutex |
Create a temporary MutexLocker object to lock a mutex inside a scope.
Yes, I know that there are numerous libraries that do the same and better. But I find it essential to keep the dependencies as low as possible for thin clients.
Definition at line 70 of file mutex.h.
|
Definition at line 73 of file mutex.h. References Mutex::lock(), and m_mutex. |
|
Definition at line 74 of file mutex.h. References m_mutex, and Mutex::unlock(). |
|
Definition at line 77 of file mutex.h. Referenced by MutexLocker(), and ~MutexLocker(). |