A multiple reader single writer lock. Readers cannot upgrade their lock to writer. LockRead/UnlockRead and LockWrite/UnlockWrite must alway be called in pairs and cannot be interleved. More...
#include <RWLock.h>
Public Member Functions | |
void | LockRead () |
void | LockWrite () |
void | UnlockRead () |
void | UnlockWrite () |
Protected Attributes | |
pthread_rwlock_t | m_rwlock |
A multiple reader single writer lock. Readers cannot upgrade their lock to writer. LockRead/UnlockRead and LockWrite/UnlockWrite must alway be called in pairs and cannot be interleved.
Definition at line 38 of file RWLock.h.