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

BiasedRWLock Class Reference

#include <BiasedRWLock.h>

Inheritance diagram for BiasedRWLock:

RWLock List of all members.

Public Methods

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

Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-04-04T07:52:43-0500>
Version:
2.1.0
A specialized RWLock that has a bias toward writers. It will prefer writers over readers when many threads are competing for this lock.

See also:
RWLock


Constructor & Destructor Documentation

BiasedRWLock   throw (Synchronization_Exception) [inline]
 

Create a new RWLock that has a bias toward writers.

virtual ~BiasedRWLock   throw () [inline, virtual]
 

Destroy the RWLock


Member Function Documentation

virtual bool allowReader   [inline, virtual]
 

Use the internal counters to allow writers access to the lock before readers, regardless of how many there may be.

Reimplemented from RWLock.


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