ZThread::BiasedReadWriteLock Class Reference

#include <BiasedReadWriteLock.h>

Inheritance diagram for ZThread::BiasedReadWriteLock:

ZThread::ReadWriteLock ZThread::NonCopyable List of all members.

Public Member Functions

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

Detailed Description

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T10:22:34-0400>
Version:
2.2.7
A BiasedReadWriteLock has a bias toward writers. It will prefer read-write access over read-only access when many threads are contending for access to either Lockable this ReadWriteLock provides.

See also:
ReadWriteLock


Constructor & Destructor Documentation

ZThread::BiasedReadWriteLock::BiasedReadWriteLock (  )  [inline]

Create a BiasedReadWriteLock

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


Member Function Documentation

virtual Lockable& ZThread::BiasedReadWriteLock::getReadLock (  )  [inline, virtual]

See also:
ReadWriteLock::getReadLock()

Implements ZThread::ReadWriteLock.

virtual Lockable& ZThread::BiasedReadWriteLock::getWriteLock (  )  [inline, virtual]

See also:
ReadWriteLock::getWriteLock()

Implements ZThread::ReadWriteLock.


The documentation for this class was generated from the following file:
Generated on Wed Aug 30 03:27:47 2006 for SWG EMU by  doxygen 1.4.7