pthread_rdwr_t Struct Reference

pthread_rdwr_t structure More...

#include <pthread_rdwr.h>


Data Fields

pthread_mutex_t lock
 structure lock
pthread_cond_t read_cond
 read condition
pthread_cond_t write_cond
 write condition
int reading
 number of readers
int readers_waiting
 number of readers waiting
int writing
 number of writers
int writers_waiting
 number of writers waiting
short stage
 current stage of rdwr-lock (only for toggle preference)
int preference
 preference attribute
int type
 type attribute


Detailed Description

pthread_rdwr_t structure


Field Documentation

short pthread_rdwr_t::stage

current stage of rdwr-lock (only for toggle preference)

-2 -> stage writing -1 -> stage waiting for writing 0 -> stage open 1 -> stage waiting for reading 2 -> stage reading


The documentation for this struct was generated from the following file:
Generated on Tue Apr 24 20:01:36 2007 for libctf by  doxygen 1.5.1