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

This class allows a reader/writer ressource usage policy. More...

#include <reader_writer.h>

List of all members.

Public Methods

 CReaderWriter ()
 ~CReaderWriter ()
void enterReader ()
void leaveReader ()
void enterWriter ()
void leaveWriter ()

Private Attributes

volatile CMutex _Fairness
volatile CMutex _ReadersMutex
volatile CMutex _RWMutex
volatile sint _ReadersLevel


Detailed Description

This class allows a reader/writer ressource usage policy.

Author:
Benjamin Legros , Nevrax France
Date:
2001

Definition at line 40 of file reader_writer.h.


Constructor & Destructor Documentation

NLMISC::CReaderWriter::CReaderWriter  
 

Definition at line 32 of file reader_writer.cpp.

References _ReadersLevel.

NLMISC::CReaderWriter::~CReaderWriter  
 

Definition at line 37 of file reader_writer.cpp.


Member Function Documentation

void NLMISC::CReaderWriter::enterReader   [inline]
 

Definition at line 54 of file reader_writer.h.

References _ReadersLevel.

void NLMISC::CReaderWriter::enterWriter   [inline]
 

Definition at line 74 of file reader_writer.h.

void NLMISC::CReaderWriter::leaveReader   [inline]
 

Definition at line 65 of file reader_writer.h.

References _ReadersLevel.

void NLMISC::CReaderWriter::leaveWriter   [inline]
 

Definition at line 81 of file reader_writer.h.


Member Data Documentation

volatile CMutex NLMISC::CReaderWriter::_Fairness [private]
 

Definition at line 44 of file reader_writer.h.

volatile sint NLMISC::CReaderWriter::_ReadersLevel [private]
 

Definition at line 47 of file reader_writer.h.

Referenced by CReaderWriter, enterReader, and leaveReader.

volatile CMutex NLMISC::CReaderWriter::_ReadersMutex [private]
 

Definition at line 45 of file reader_writer.h.

volatile CMutex NLMISC::CReaderWriter::_RWMutex [private]
 

Definition at line 46 of file reader_writer.h.


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