Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CAVERNts_mutex_c Class Reference

#include <CAVERNts_mutex_c.hxx>

List of all members.

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


Detailed Description

Mutual exclusion class.

This class encapsulates mutual exclusion in a C++ object.


The documentation for this class was generated from the following file:
Generated at Mon Jul 2 14:24:45 2001 for CAVERNsoft by doxygen1.2.8-20010617 written by Dimitri van Heesch, © 1997-2001