# 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::CMutex Class Reference

Classic mutex implementation Don't assume the mutex are recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; and don't assume either the threads are woken-up in the same order as they were put to sleep ! More...

#include <mutex.h>

List of all members.

Public Methods

 CMutex ()
 Constructor. More...

 ~CMutex ()
 Destructor. More...

void enter ()
void leave ()


Detailed Description

Classic mutex implementation Don't assume the mutex are recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; and don't assume either the threads are woken-up in the same order as they were put to sleep !

 CMutex m;
 m.enter ();
 // do critical stuffs
 m.leave ();
Author(s):
Vianney Lecroart, Olivier Cado , Nevrax France
Date:
2000

Definition at line 59 of file mutex.h.


Constructor & Destructor Documentation

NLMISC::CMutex::CMutex ( )
 

Constructor.

Definition at line 119 of file mutex.cpp.

NLMISC::CMutex::~CMutex ( )
 

Destructor.

Definition at line 161 of file mutex.cpp.


Member Function Documentation

void NLMISC::CMutex::enter ( )
 

Definition at line 174 of file mutex.cpp.

void NLMISC::CMutex::leave ( )
 

Definition at line 247 of file mutex.cpp.


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