Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members  

FairRWLock Class Reference

#include <FairRWLock.h>

Inheritance diagram for FairRWLock:

RWLock List of all members.

Public Methods

 FairRWLock () throw (Synchronization_Exception)
virtual ~FairRWLock () throw ()
virtual bool allowReader ()

Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-04-04T07:52:31-0500>
Version:
2.1.0
A specialized RWLock that has a no special bias. It will maintain a balance between the order readers and writers allowed to acquire this objects locks

See also:
RWLock


Constructor & Destructor Documentation

FairRWLock   throw (Synchronization_Exception) [inline]
 

Create a fair or somewhat balanced RWLock

virtual ~FairRWLock   throw () [inline, virtual]
 

Destroy this RWLock


Member Function Documentation

virtual bool allowReader   [inline, virtual]
 

Use the internal fairness counter to try and keep a balance between the number of readers and the number of writers allowed access to the lock.

Reimplemented from RWLock.


The documentation for this class was generated from the following file:
Generated on Mon Jun 10 22:44:45 2002 for ZThread by doxygen1.2.15