a lock shared between multiple reader threads and a single writer thread More...
#include <reader_writer_exclusion.hpp>
Classes | |
class | ReaderGuard |
class | WriterGuard |
Public Member Functions | |
void | reader_acquire () |
void | reader_release () |
void | writer_acquire () |
void | writer_release () |
a lock shared between multiple reader threads and a single writer thread
Multiple readers are allowed to acquire the lock simultaneously but the writer is blocked until all readers release their locks. Once the writer acquires the lock, readers are blocked from acquiring it until the writer releases.