If you can read this text, it means you are not experiencing this website at its best. This website is designed for used with a standards-compliant browser.
Current version: 2.3.2
ZThreads
A platform-independent, multi-threading and synchronization library for C++
Home Documentation Downloads CVS Contact

FairReadWriteLock Class Reference

#include <FairReadWriteLock.h>

Inheritance diagram for FairReadWriteLock:

ReadWriteLock NonCopyable List of all members.

Public Member Functions

 FairReadWriteLock ()
virtual ~FairReadWriteLock ()
 Destroy this ReadWriteLock.
virtual LockablegetReadLock ()
virtual LockablegetWriteLock ()

Friends

class ReadLock
class WriteLock

Detailed Description

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T10:26:25-0400>
Version:
2.2.7
A FairReadWriteLock maintains a balance between the order read-only access and read-write access is allowed. Threads contending for the pair of Lockable objects this ReadWriteLock provides will gain access to the locks in FIFO order.

See also:
ReadWriteLock


Constructor & Destructor Documentation

FairReadWriteLock  )  [inline]
 

Create a BiasedReadWriteLock

Exceptions:
Initialization_Exception thrown if resources could not be allocated for this object.

Member Function Documentation

virtual Lockable& getReadLock  )  [inline, virtual]
 

See also:
ReadWriteLock::getReadLock()

Implements ReadWriteLock.

virtual Lockable& getWriteLock  )  [inline, virtual]
 

See also:
ReadWriteLock::getWriteLock()

Implements ReadWriteLock.


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