summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_private.h
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2004-01-08 15:37:09 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2004-01-08 15:37:09 +0000
commit24f33bca1c2f4207c48830f893ee5a07e3c4402e (patch)
treef5c5e554641a7502ee565fa9bd6da4230affaab6 /lib/libpthread/thread/thr_private.h
parent11fe249262653b01645a46f938c98461bae1dc0a (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r--lib/libpthread/thread/thr_private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h
index 73c9e284e398..7948df8e428c 100644
--- a/lib/libpthread/thread/thr_private.h
+++ b/lib/libpthread/thread/thr_private.h
@@ -521,9 +521,9 @@ struct pthread_rwlockattr {
struct pthread_rwlock {
pthread_mutex_t lock; /* monitor lock */
- int state; /* 0 = idle >0 = # of readers -1 = writer */
pthread_cond_t read_signal;
pthread_cond_t write_signal;
+ int state; /* 0 = idle >0 = # of readers -1 = writer */
int blocked_writers;
};
@@ -789,6 +789,9 @@ struct pthread {
/* Number of priority ceiling or protection mutexes owned. */
int priority_mutex_count;
+ /* Number rwlocks rdlocks held. */
+ int rdlock_count;
+
/*
* Queue of currently owned mutexes.
*/