TuttleOFX  1
OFX::MultiThread::AutoMutex Class Reference

#include <ofxsMultiThread.h>

Collaboration diagram for OFX::MultiThread::AutoMutex:

Public Member Functions

 AutoMutex (Mutex &m)
 ctor, acquires the lock
virtual ~AutoMutex ()
 dtor, releases the lock

Protected Attributes

Mutex_mutex

Detailed Description

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.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Field Documentation

Definition at line 118 of file ofxsMultiThread.h.

Referenced by AutoMutex(), and ~AutoMutex().


The documentation for this class was generated from the following file: