MutexMonitor use Resource Acquisition Is Initialization (RAII) to mutex lock blocks of code.
#include <Mutex.h>
Public Member Functions | |
| MutexMonitor (Mutex &mutex) | |
| Lock the mutex. | |
| ~MutexMonitor (void) | |
| Unlock the mutex. | |
Definition at line 55 of file Mutex.h.
| MutexMonitor::MutexMonitor | ( | Mutex & | mutex | ) | [inline] |
Definition at line 60 of file Mutex.h.
References Mutex::lock().
| MutexMonitor::~MutexMonitor | ( | void | ) | [inline] |
Definition at line 67 of file Mutex.h.
References Mutex::unlock().
| LizardTech |