EPICS Base 7.0.8.0
|
Provides an RAII style lock/unlock of a mutex. More...
#include <epicsGuard.h>
Public Types | |
typedef epicsGuardRelease< T > | release_t |
Public Member Functions | |
epicsGuard (T &mutexIn) | |
Guard a mutex based on scope. | |
void | assertIdenticalMutex (const T &) const |
Friends | |
class | epicsGuardRelease< T > |
Provides an RAII style lock/unlock of a mutex. When this object is created, it attempts to lock the mutex it was given. When control leaves the scope where this was created, the destructor unlocks the mutex.
This class is also useful in situations where C++ exceptions are possible.
Definition at line 53 of file epicsGuard.h.
typedef epicsGuardRelease<T> epicsGuard< T >::release_t |
Definition at line 55 of file epicsGuard.h.
|
inline |
Constructs an epicsGuard, locking the mutex for the scope of this object.
mutexIn | A mutex-like object to be lock()'ed and unlock()'ed |
Definition at line 140 of file epicsGuard.h.
|
inline |
Definition at line 147 of file epicsGuard.h.
|
inline |
Definition at line 153 of file epicsGuard.h.
|
friend |
Definition at line 70 of file epicsGuard.h.