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

This class is similar to CUnfairSynchronized, but it ensures that 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

 CFairSynchronized (const std::string &name)

Private Attributes

volatile CFairMutex _Cs
 The mutex of the synchronized value. More...

volatile T _Value
 The synchronized value. More...


Friends

class CFairSynchronized::CAccessor


Detailed Description

template<class T>
class NLMISC::CFairSynchronized< T >

This class is similar to CUnfairSynchronized, but it ensures that the threads are woken-up in the same order as they were put to sleep.

Internally, it uses a CFairMutex object instead of a CUnfairMutex object.

Author:
Olivier Cado , Nevrax France
Date:
2001

Definition at line 448 of file mutex.h.


Constructor & Destructor Documentation

template<class T>
NLMISC::CFairSynchronized< T >::CFairSynchronized const std::string &    name [inline]
 

Definition at line 452 of file mutex.h.


Friends And Related Function Documentation

template<class T>
friend class CFairSynchronized::CAccessor [friend]
 

Definition at line 484 of file mutex.h.


Member Data Documentation

template<class T>
volatile CFairMutex NLMISC::CFairSynchronized::_Cs [private]
 

The mutex of the synchronized value.

Definition at line 487 of file mutex.h.

template<class T>
volatile T NLMISC::CFairSynchronized::_Value [private]
 

The synchronized value.

Definition at line 490 of file mutex.h.


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