NLMISC::CFairMutex Class Reference

#include <mutex.h>


Detailed Description

Kind of "fair" mutex

Windows: uses Critical Section, cannot be shared among processes Linux: uses PThread (POSIX) semaphore, cannot be shared among processes

CUnfairMutex m; m.enter (); // do critical stuffs m.leave (); *
Author:
Olivier Cado

Nevrax France

Date:
2000
CFairMutex m; m.enter (); // do critical stuffs m.leave (); *
Author:
Olivier Cado

Nevrax France

Date:
2001

Definition at line 484 of file mutex.h.

Public Member Functions

 CFairMutex (const std::string &name)
 CFairMutex ()
 Constructor.

void enter ()
void leave ()
 ~CFairMutex ()
 Destructor.


Data Fields

std::string Name


Constructor & Destructor Documentation

NLMISC::CFairMutex::CFairMutex  ) 
 

Constructor.

NLMISC::CFairMutex::CFairMutex const std::string &  name  ) 
 

NLMISC::CFairMutex::~CFairMutex  ) 
 

Destructor.


Member Function Documentation

void NLMISC::CFairMutex::enter  ) 
 

void NLMISC::CFairMutex::leave  ) 
 


Field Documentation

std::string NLMISC::CFairMutex::Name
 

Definition at line 499 of file mutex.h.


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 13:12:19 2004 for NeL by doxygen 1.3.6