#include <LOW_thread_mutex.h>
Collaboration diagram for LOW_thread_mutex::mutexLock:
Public Member Functions | |
mutexLock (LOW_thread_mutex &inMutex) | |
Obtain the lock. | |
~mutexLock () | |
Release the lock. | |
Private Attributes | |
LOW_thread_mutex & | mutex |
Pointer to the mutex the lock is for. |
The class is intended to be used in a "locking is creation" design pattern. On creation a lock is optained on the mutex, and on destruction the mutex is released.
Definition at line 73 of file LOW_thread_mutex.h.
|
Obtain the lock. Inlined for performance reasons.
Definition at line 79 of file LOW_thread_mutex.h. References LOW_thread_mutex::lock(), and mutex. |
|
Release the lock. Inlined for performance reasons. Definition at line 88 of file LOW_thread_mutex.h. References mutex, and LOW_thread_mutex::unlock(). |
|
Pointer to the mutex the lock is for.
Definition at line 94 of file LOW_thread_mutex.h. Referenced by mutexLock(), and ~mutexLock(). |