List of all members.
Detailed Description
Lock that permits multiple readers to lock the object at the same time, but it will not allow any readers when writelocked, and no writelock is allowed when readlocked.
Constructor & Destructor Documentation
| Threads::ReadWriteLock::ReadWriteLock |
( |
|
) |
|
| virtual Threads::ReadWriteLock::~ReadWriteLock |
( |
|
) |
[virtual] |
Member Function Documentation
| void Threads::ReadWriteLock::convPermissiveToWriteLock |
( |
|
) |
|
| bool Threads::ReadWriteLock::convReadToWriteLock |
( |
|
) |
|
Lock MUST be readLocked when calling. Object Will always be in write-lock status on return.
- Returns:
- false if it had to release the readlock when switching to writelock.
| void Threads::ReadWriteLock::convWriteToPermissive |
( |
|
) |
|
| void Threads::ReadWriteLock::convWriteToReadLock |
( |
|
) |
|
Lock MUST be writeLocked when calling.
| void Threads::ReadWriteLock::permissiveWriteLock |
( |
|
) |
|
Same as readlock, but I'm guaranteed to convert to writelock without giving up my lock. Only one thread may have the permissive write lock at any given time.
| void Threads::ReadWriteLock::permissiveWriteUnLock |
( |
|
) |
|
| void Threads::ReadWriteLock::readLock |
( |
|
) |
|
No writers will be active.
| void Threads::ReadWriteLock::readUnLock |
( |
|
) |
|
| bool Threads::ReadWriteLock::tryReadLock |
( |
|
) |
|
No writers will be active.
| bool Threads::ReadWriteLock::tryWriteLock |
( |
|
) |
|
No readers will be active.
| void Threads::ReadWriteLock::writeLock |
( |
|
) |
|
No readers will be active.
| void Threads::ReadWriteLock::writeUnLock |
( |
|
) |
|
Member Data Documentation