![]() |
API Documentation
|
Maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader. More...
#include <RWLock.h>
Public Member Functions | |
| uint04 | numOfReadLocks () const |
| uint04 | numOfReadLocksHeld () const |
| uint04 | numOfWriteLocks () const |
| uint04 | numOfWriteLocksHeld () const |
| bool | ReadLock () |
| void | ReadUnlock () |
| RWLock () | |
| RWLock (const RWLock &lock)=delete | |
| bool | TryReadLock () |
| bool | TryReadLock (uint08 time) |
| bool | TryWriteLock () |
| bool | TryWriteLock (uint08 time) |
| bool | WriteLock () |
| void | WriteUnlock () |
| ~RWLock () | |
Static Public Member Functions | |
| static RWLock * | getEntry (const void *entry) |
Maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader.
| RWLock | ( | ) |
| ~RWLock | ( | ) |
|
static |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| bool ReadLock | ( | ) |
| void ReadUnlock | ( | ) |
| bool TryReadLock | ( | ) |
| bool TryReadLock | ( | uint08 | time | ) |
| bool TryWriteLock | ( | ) |
| bool TryWriteLock | ( | uint08 | time | ) |
| bool WriteLock | ( | ) |
| void WriteUnlock | ( | ) |