Netwhere
 All Classes Pages
Classes | Public Member Functions | List of all members
ReaderWriterExclusion Class Reference

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 ()
 

Detailed Description

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.


The documentation for this class was generated from the following file: