AWS SDK for C++AWS SDK for C++ Version 1.11.792 |
#include <ReaderWriterLock.h>
This lock is optimized for frequent reads and infrequent writes. However, writers get priority to the lock.
Definition at line 25 of file ReaderWriterLock.h.
Enters the lock in Reader-mode. This call blocks until no writers are acquiring the lock.
Enters the lock in Writer-mode. This call blocks until no readers nor writers are acquiring the lock.
Decrements the readers count by one and if the count is zero, signals any waiting writers to acquire the lock. NOTE: Calling this function without a matching LockReader results in undefined behavior.
Decrements the number of writers by one and signals any waiting readers or writers to acquire the lock. NOTE: Calling this function without a matching LockWriter results in undefined behavior.