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

ReadWriteLock Class Reference

#include <ReadWriteLock.h>

Inheritance diagram for ReadWriteLock:

NonCopyable BiasedReadWriteLock FairReadWriteLock List of all members.

Public Methods

 ReadWriteLock ()
virtual ~ReadWriteLock () throw ()
virtual LockablegetReadLock ()=0
virtual LockablegetWriteLock ()=0

Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-06-19T07:39:55-0400>
Version:
2.2.7
Read/Write lock provide a set of coordinated Lockable object that allow many Readers while there is no update in progress, but only 1 Writer & 0 Readers during an update

Because the general case where an ReadWriteLock would be used is one where you have more readers than writers, this lock will have a bias toward readers


Constructor & Destructor Documentation

ReadWriteLock   [inline]
 

Create a new ReadWriteLock

Exceptions:
Initialization_Exception  - thrown if resources could not be allocated

virtual ~ReadWriteLock   throw () [inline, virtual]
 

Destroy this ReadWriteLock


Member Function Documentation

virtual Lockable& getReadLock   [pure virtual]
 

Get a reference to the read lock

Returns :
Lockable& read lock

Implemented in BiasedReadWriteLock, and FairReadWriteLock.

virtual Lockable& getWriteLock   [pure virtual]
 

Get a reference to the write lock

Returns :
Lockable& write lock

Implemented in BiasedReadWriteLock, and FairReadWriteLock.


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