BiasedReadWriteLock Class Reference
#include <BiasedReadWriteLock.h>
Inheritance diagram for BiasedReadWriteLock:

Public Member Functions | |
BiasedReadWriteLock () | |
virtual | ~BiasedReadWriteLock () |
Destroy this ReadWriteLock. | |
virtual Lockable & | getReadLock () |
virtual Lockable & | getWriteLock () |
![]() | |
ReadWriteLock () | |
virtual | ~ReadWriteLock () |
Destroy this ReadWriteLock. | |
virtual Lockable & | getReadLock ()=0 |
virtual Lockable & | getWriteLock ()=0 |
Protected Member Functions | |
void | beforeRead () |
bool | beforeReadAttempt (unsigned long timeout) |
void | afterRead () |
void | beforeWrite () |
bool | beforeWriteAttempt (unsigned long timeout) |
void | afterWrite () |
bool | allowReader () |
bool | allowWriter () |
![]() | |
NonCopyable () | |
Create a NonCopyable object. | |
~NonCopyable () | |
Destroy a NonCopyable object. | |
Friends | |
class | ReadLock |
class | WriteLock |
Detailed Description
- 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
◆ BiasedReadWriteLock()
|
inline |
Create a BiasedReadWriteLock
- Exceptions
-
Initialization_Exception thrown if resources could not be allocated for this object.
Member Function Documentation
◆ getReadLock()
|
inlinevirtual |
- See also
- ReadWriteLock::getReadLock()
Implements ReadWriteLock.
◆ getWriteLock()
|
inlinevirtual |
- See also
- ReadWriteLock::getWriteLock()
Implements ReadWriteLock.
The documentation for this class was generated from the following file:
- BiasedReadWriteLock.h