summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/pthread_private.h
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2004-01-08 15:39:12 +0000
committerdeischen <deischen@FreeBSD.org>2004-01-08 15:39:12 +0000
commit47d6f075e0842d16c107f1a3317f46ba7d83ef9c (patch)
tree20ef82c4767daf3d51305b4a89d914580ee33839 /lib/libc_r/uthread/pthread_private.h
parentb5d5c1e2e6eed84babb0064d131368e6e1f33819 (diff)
downloadFreeBSD-src-47d6f075e0842d16c107f1a3317f46ba7d83ef9c.zip
FreeBSD-src-47d6f075e0842d16c107f1a3317f46ba7d83ef9c.tar.gz
MFlibpthread: Add a simple work-around for deadlocking on recursive
readlocks on a rwlock while there are writers waiting.
Diffstat (limited to 'lib/libc_r/uthread/pthread_private.h')
-rw-r--r--lib/libc_r/uthread/pthread_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index 5569b20..6807f2f 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -894,6 +894,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.
*/
OpenPOWER on IntegriCloud