Scopira 20080306

scopira::tool::rwlock Class Reference

#include <thread_pthreads.h>

List of all members.

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)

Detailed Description

read-write locks.

Author:
Aleksander Demko

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