Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MNDebugMutex Class Reference

#include <MNMutex.h>

List of all members.

Public Member Functions

 MNDebugMutex ()
 ~MNDebugMutex ()
void lock ()
void unlock ()

Protected Attributes

mnthread_mutex_t lck


Detailed Description

Mutex class with re-entrance prevention.
This class hides the mnthread functions for mutex (mutual exclusion). It adds a thread id test to {MNMutex} and throws an assertion when a thread tries to lock the mutex twice.


Constructor & Destructor Documentation

MNDebugMutex::MNDebugMutex  ) 
 

Constructor.
The constructor initializes the mutex object. Initially the mutex is always unlocked.

MNDebugMutex::~MNDebugMutex  ) 
 

Destructor.
The destructor releases the posix mutex object.


Member Function Documentation

void MNDebugMutex::lock  ) 
 

Lock the mutex. If locked, verify that the caller differs from the lock holder before locking.

void MNDebugMutex::unlock  ) 
 

Release the mutex.


Member Data Documentation

mnthread_mutex_t MNDebugMutex::lck [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:35:57 2005 for Komssys by doxygen 1.3.8