TuttleOFX
1
|
#include <ofxsMultiThread.h>
Public Member Functions | |
AutoMutex (Mutex &m) | |
ctor, acquires the lock | |
virtual | ~AutoMutex () |
dtor, releases the lock | |
Protected Attributes | |
Mutex & | _mutex |
a class to wrap around a mutex which is exception safe it locks the mutex on construction and unlocks it on destruction
Definition at line 115 of file ofxsMultiThread.h.
OFX::MultiThread::AutoMutex::AutoMutex | ( | Mutex & | m | ) | [inline, explicit] |
ctor, acquires the lock
Definition at line 122 of file ofxsMultiThread.h.
References _mutex, and OFX::MultiThread::Mutex::lock().
virtual OFX::MultiThread::AutoMutex::~AutoMutex | ( | ) | [inline, virtual] |
dtor, releases the lock
Definition at line 129 of file ofxsMultiThread.h.
References _mutex, and OFX::MultiThread::Mutex::unlock().
Mutex& OFX::MultiThread::AutoMutex::_mutex [protected] |
Definition at line 118 of file ofxsMultiThread.h.
Referenced by AutoMutex(), and ~AutoMutex().