Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
The RWLock allows multiple readers to simultaneously access a critical code section or one writer. More...
#include <thread.hh>
Public Types | |
typedef pthread_rwlock_t * | native_handle_type |
Public Member Functions | |
void | rdlock () |
void | wrlock () |
void | unlock () |
bool | try_rdlock () |
bool | try_wrlock () |
native_handle_type | native_handle () |
RWLock (const RWLock &) | |
Mutex & | operator= (const RWLock &) |
The RWLock allows multiple readers to simultaneously access a critical code section or one writer.
This class is a thin wrapper around pthread_rwlock_rdlock() and related functions. This class supports static construction.