|
TuttleOFX
1
|
#include <ofxsMultiThread.h>

Public Member Functions | |
| Mutex (int lockCount=0) | |
| ctor | |
| virtual | ~Mutex (void) |
| dtor | |
| void | lock () |
| lock it, blocks until lock is gained | |
| void | unlock () |
| unlock it | |
| bool | tryLock () |
| attempt to lock, non-blocking | |
Protected Attributes | |
| OfxMutexHandle | _handle |
| The handle. | |
An OFX mutex.
Definition at line 86 of file ofxsMultiThread.h.
| OFX::MultiThread::Mutex::Mutex | ( | int | lockCount = 0 | ) |
ctor
Definition at line 129 of file ofxsMultiThread.cpp.
References _handle, OFX::Private::gThreadSuite, OfxMultiThreadSuiteV1::mutexCreate, and OFX::throwSuiteStatusException().

| OFX::MultiThread::Mutex::~Mutex | ( | void | ) | [virtual] |
dtor
Definition at line 138 of file ofxsMultiThread.cpp.
References _handle, OFX::Private::gThreadSuite, and OfxMultiThreadSuiteV1::mutexDestroy.
| void OFX::MultiThread::Mutex::lock | ( | void | ) |
lock it, blocks until lock is gained
Definition at line 144 of file ofxsMultiThread.cpp.
References _handle, OFX::Private::gThreadSuite, OfxMultiThreadSuiteV1::mutexLock, and OFX::throwSuiteStatusException().
Referenced by OFX::MultiThread::AutoMutex::AutoMutex(), tuttle::plugin::OfxProgress::progressEnd(), and tuttle::plugin::OfxProgress::progressForward().

| bool OFX::MultiThread::Mutex::tryLock | ( | ) |
attempt to lock, non-blocking
returns
Definition at line 160 of file ofxsMultiThread.cpp.
References _handle, OFX::Private::gThreadSuite, kOfxStatOK, and OfxMultiThreadSuiteV1::mutexTryLock.
| void OFX::MultiThread::Mutex::unlock | ( | void | ) |
unlock it
Definition at line 152 of file ofxsMultiThread.cpp.
References _handle, OFX::Private::gThreadSuite, OfxMultiThreadSuiteV1::mutexUnLock, and OFX::throwSuiteStatusException().
Referenced by tuttle::plugin::OfxProgress::progressEnd(), tuttle::plugin::OfxProgress::progressForward(), and OFX::MultiThread::AutoMutex::~AutoMutex().

OfxMutexHandle OFX::MultiThread::Mutex::_handle [protected] |