#include <CAVERNts_mutex_c.hxx>
Public Types | |
enum | mutexDebug_t { DEBUG_ON, DEBUG_OFF } |
Public Methods | |
CAVERNts_mutex_c () | |
Construct for a CAVERN mutual exclusion object. | |
void | lock () |
Lock the mutex object. | |
void | unlock () |
Unlock mutex object. | |
void | setMutexDebug (CAVERNts_mutex_c::mutexDebug_t stat) |
Turn mutex debug messages on or off. | |
void | setMutexDebugMesg (char *msg) |
Set the debug message to print whenever lock and unlock is performed. | |
~CAVERNts_mutex_c () | |
Destructor for a CAVERN mutual exclusion object. | |
CAVERN_MUTEX_T* | getMutex () |
Return the handle to the mutex variable. | |
Private Attributes | |
CAVERN_MUTEX_T | mutex |
mutexDebug_t | debugStat |
char* | debugMsg |
This class encapsulates mutual exclusion in a C++ object.