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

FairReadWriteLock Class Reference

#include <FairReadWriteLock.h>

Inheritance diagram for FairReadWriteLock:

ReadWriteLock NonCopyable List of all members.

Public Methods

 FairReadWriteLock ()
virtual ~FairReadWriteLock () throw ()
virtual LockablegetReadLock ()
virtual LockablegetWriteLock ()

Friends

class ReadLock
class WriteLock

Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-06-19T08:09:25-0400>
Version:
2.2.7
A ReadWriteLock that has a no special bias. It will maintain a balance between the order readers and writers by allowing waiting threads to acquire one lock or the other in FIFO order.

See also:
ReadWriteLock


Constructor & Destructor Documentation

FairReadWriteLock   [inline]
 

Create a fair or somewhat balanced ReadWriteLock

virtual ~FairReadWriteLock   throw () [inline, virtual]
 

Destroy this ReadWriteLock


Member Function Documentation

virtual Lockable& getReadLock   [inline, virtual]
 

Get a reference to the read lock

Returns :
Lockable& read lock

Implements ReadWriteLock.

virtual Lockable& getWriteLock   [inline, virtual]
 

Get a reference to the write lock

Returns :
Lockable& write lock

Implements ReadWriteLock.


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:11 2002 for ZThread by doxygen1.2.17