# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CFairMutex Class Reference

Kind of "fair" mutex. More...

#include <mutex.h>

List of all members.

Public Methods

 CFairMutex ()
 Constructor. More...

 CFairMutex (const std::string &name)
 ~CFairMutex ()
 Destructor. More...

void enter ()
void leave ()

Public Attributes

std::string Name


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 290 of file mutex.h.


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  
 


Member Data Documentation

std::string NLMISC::CFairMutex::Name
 

Definition at line 305 of file mutex.h.


The documentation for this class was generated from the following file: