#include <ReadWriteLock.h>
Inheritance diagram for ReadWriteLock:
Public Methods | |
ReadWriteLock () | |
virtual | ~ReadWriteLock () throw () |
virtual Lockable & | getReadLock ()=0 |
virtual Lockable & | getWriteLock ()=0 |
Because the general case where an ReadWriteLock would be used is one where you have more readers than writers, this lock will have a bias toward readers
|
Create a new ReadWriteLock
|
|
Destroy this ReadWriteLock |
|
Get a reference to the read lock
Implemented in BiasedReadWriteLock, and FairReadWriteLock. |
|
Get a reference to the write lock
Implemented in BiasedReadWriteLock, and FairReadWriteLock. |