RwLock Struct Reference


Data Fields

Ns_Mutex mutex
Ns_Cond rcond
Ns_Cond wcond
int nreaders
int nwriters
int lockcnt

Detailed Description

The following structure defines a read/write lock including a mutex to protect access to the structure and condition variables for waiting reader and writer threads.


Field Documentation

Ns_Mutex RwLock::mutex

Ns_Cond RwLock::rcond

Mutex guarding lock structure.

Ns_Cond RwLock::wcond

Condition variable for waiting readers.

int RwLock::nreaders

condition variable for waiting writers.

int RwLock::nwriters

Number of readers waiting for lock.

int RwLock::lockcnt

Number of writers waiting for lock.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 4 19:58:58 2007 by  doxygen 1.5.1