This class provides a multi-reader/single-writer lock mechanism.
Declared in <bslmt_readerwriterlock.h>
class ReaderWriterLock;
| Name | Description |
|---|---|
ReaderWriterLock [constructor] | Construct a reader/writer lock initialized to an unlocked state. |
~ReaderWriterLock [destructor] | Destroy this reader/writer lock. |
isLocked | Return true if this reader-write lock is currently read locked or write locked, and false otherwise. |
isLockedRead | Return true if this reader-write lock is currently read locked, and false otherwise. |
isLockedWrite | Return true if this reader-write lock is currently write locked, and false otherwise. |
lockRead | Lock this reader/writer lock for read. |
lockReadReserveWrite | Lock this reader/writer lock for read and reserve a write lock. |
lockWrite | Lock this reader/writer lock for write. |
tryLockRead | Attempt to lock this reader/writer lock for read. |
tryLockWrite | Attempt to lock this reader/writer lock for write. |
tryUpgradeToWriteLock | Attempt to atomically convert a held read lock to a write lock. |
unlock | Release a previously acquired read or write lock. |
unlockRead | DEPRECATED: Use unlock instead. Note that calls to this function are simply forwarded to unlock. |
unlockReadUnreserveWrite | DEPRECATED: Use unlock instead. Note that calls to this function are simply forwarded to unlock. |
unlockWrite | DEPRECATED: Use unlock instead. Note that calls to this function are simply forwarded to unlock. |
upgradeToWriteLock | Convert a held read lock to a write lock. |