NLMISC::CFairSynchronized< T > Class Template Reference

#include <mutex.h>


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

Public Member Functions

 CFairSynchronized (const std::string &name)

Private Attributes

volatile CFairMutex _Cs
 The mutex of the synchronized value.

volatile T _Value
 The synchronized value.


Friends

class CFairSynchronized::CAccessor


Constructor & Destructor Documentation

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

Definition at line 646 of file mutex.h.

References NLMISC::CFairSynchronized< T >::_Cs.

00646 : _Cs(name) { }


Friends And Related Function Documentation

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

Definition at line 678 of file mutex.h.


Field Documentation

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

The mutex of the synchronized value.

Definition at line 681 of file mutex.h.

Referenced by NLMISC::CFairSynchronized< T >::CFairSynchronized().

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

The synchronized value.

Definition at line 684 of file mutex.h.


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