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

ReadWriteLock Class Reference

#include <ReadWriteLock.h>

Inheritance diagram for ReadWriteLock:

NonCopyable BiasedReadWriteLock 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

ReadWriteLock  )  [inline]
 

Create a ReadWriteLock

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

Member Function Documentation

virtual Lockable& getReadLock  )  [pure virtual]
 

Get a reference to the read-only Lockable.

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

Implemented in BiasedReadWriteLock, and FairReadWriteLock.

virtual Lockable& getWriteLock  )  [pure virtual]
 

Get a reference to the read-write Lockable.

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

Implemented in BiasedReadWriteLock, and FairReadWriteLock.


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