ZThread::ReadWriteLock Class Reference

#include <ReadWriteLock.h>

Inheritance diagram for ZThread::ReadWriteLock:

ZThread::NonCopyable ZThread::BiasedReadWriteLock ZThread::FairReadWriteLock List of all members.

Public Member Functions

 ReadWriteLock ()
virtual ~ReadWriteLock ()
 Destroy this ReadWriteLock.
virtual LockablegetReadLock ()=0
virtual LockablegetWriteLock ()=0

Detailed Description

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T10:17:31-0400>
Version:
2.2.7
A ReadWriteLock provides a set of coordinated Lockable objects that can be used to guard an object; One for read-only access, and another for read-write access.

See also:
BiasedReadWriteLock

FairReadWriteLock


Constructor & Destructor Documentation

ZThread::ReadWriteLock::ReadWriteLock (  )  [inline]

Create a ReadWriteLock

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


Member Function Documentation

virtual Lockable& ZThread::ReadWriteLock::getReadLock (  )  [pure virtual]

Get a reference to the read-only Lockable.

Returns:
Lockable& reference to a Lockable that provides read-only access.

Implemented in ZThread::BiasedReadWriteLock, and ZThread::FairReadWriteLock.

virtual Lockable& ZThread::ReadWriteLock::getWriteLock (  )  [pure virtual]

Get a reference to the read-write Lockable.

Returns:
Lockable& reference to a Lockable that provides read-write access.

Implemented in ZThread::BiasedReadWriteLock, and ZThread::FairReadWriteLock.


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