This class provides a multi-reader/single-writer lock mechanism.
Declared in <bslmt_readerwritermuteximpl.h>
template<
class ATOMIC_OP,
class MUTEX,
class SEMAPHORE>
class ReaderWriterMutexImpl;
| Name | Description |
|---|---|
ReaderWriterMutexImpl [constructor] | Construct a reader/writer lock initialized to an unlocked state. |
isLocked | Return true if this reader-write mutex is currently read locked or write locked, and false otherwise. |
isLockedRead | Return true if this reader-write mutex is currently read locked, and false otherwise. |
isLockedWrite | Return true if this reader-write mutex is currently write locked, and false otherwise. |
lockRead | Lock this reader-writer mutex for reading. |
lockWrite | Lock this reader-writer mutex for writing. |
tryLockRead | Attempt to lock this reader-writer mutex for reading. |
tryLockWrite | Attempt to lock this reader-writer mutex for writing. |
unlock | Release the lock that the calling thread holds on this mutex. |
unlockRead | Release the read lock that the calling thread holds on this mutex. |
unlockWrite | Release the write lock that the calling thread holds on this mutex. |