|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Wraps the readers/writers mutex implementation on your platform. More...
#include <RWMutex.hxx>
Public Member Functions | |
| RWMutex () | |
| ~RWMutex () | |
| void | readlock () |
| void | writelock () |
| void | lock () |
| void | unlock () |
| unsigned int | readerCount () const |
| unsigned int | pendingWriterCount () const |
Wraps the readers/writers mutex implementation on your platform.
Usually, if a thread attempts to aquire a write-lock while read-locks are being held, this will prevent any further read-locks from being obtained, until the write-lock is aquired and released. This prevents the "writer starvation" problem.
Definition at line 28 of file RWMutex.hxx.
| RWMutex::RWMutex | ( | ) |
Definition at line 58 of file RWMutex.cxx.
| RWMutex::~RWMutex | ( | ) |
Definition at line 66 of file RWMutex.cxx.
| void RWMutex::lock | ( | ) |
Definition at line 104 of file RWMutex.cxx.
| unsigned int RWMutex::pendingWriterCount | ( | ) | const |
Definition at line 161 of file RWMutex.cxx.
| unsigned int RWMutex::readerCount | ( | ) | const |
Definition at line 155 of file RWMutex.cxx.
| void RWMutex::readlock | ( | ) |
Definition at line 72 of file RWMutex.cxx.
| void RWMutex::unlock | ( | ) |
Definition at line 111 of file RWMutex.cxx.
| void RWMutex::writelock | ( | ) |
Definition at line 86 of file RWMutex.cxx.