EpcTools
An event based multi-threaded C++ development framework.
|
Acquires and holds a lock on the specified mutex. More...
#include <esynch.h>
Public Member Functions | |
EMutexLock (EMutexData &mtx, Bool acquire=True) | |
Class constructor. More... | |
~EMutexLock () | |
Class destructor. Unlocks the mutex if locked. More... | |
Bool | acquire (Bool wait=True) |
Manually acquires a lock on the mutex. More... | |
Acquires and holds a lock on the specified mutex.
|
inline |
Class constructor.
mtx | the mutex to lock. |
acquire | if True, the associated mutex is locked in the constructor. |
|
inline |
Class destructor. Unlocks the mutex if locked.
|
inline |
Manually acquires a lock on the mutex.
wait | directs the method to wait for the mutex to be locked. |