Scopira
20080306
|
#include <thread_pthreads.h>
Public Member Functions | |
rwlock (void) | |
ctor | |
~rwlock () | |
dtor | |
void | write_lock (void) |
locks the rwlock in WRITE mode | |
bool | try_write_lock (void) |
tries to WRITE lock the rwlock, returns true if aquired lock | |
void | read_lock (void) |
locks the rwlock in READ mode | |
bool | try_read_lock (void) |
tries to READ lock the rwlock, returns true if aquired lock | |
void | unlock (void) |
unlocks the rwlock (unclocks both WRITE and READ locks) | |
rwlock (void) | |
ctor | |
~rwlock () | |
dtor | |
void | write_lock (void) |
locks the rwlock in WRITE mode | |
bool | try_write_lock (void) |
tries to WRITE lock the rwlock, returns true if aquired lock | |
void | read_lock (void) |
locks the rwlock in READ mode | |
bool | try_read_lock (void) |
tries to READ lock the rwlock, returns true if aquired lock | |
void | unlock (void) |
unlocks the rwlock (unclocks both WRITE and READ locks) | |
read-write locks.