diff options
author | deischen <deischen@FreeBSD.org> | 2004-01-08 15:39:12 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-01-08 15:39:12 +0000 |
commit | 47d6f075e0842d16c107f1a3317f46ba7d83ef9c (patch) | |
tree | 20ef82c4767daf3d51305b4a89d914580ee33839 /lib/libc_r/uthread/pthread_private.h | |
parent | b5d5c1e2e6eed84babb0064d131368e6e1f33819 (diff) | |
download | FreeBSD-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.h | 3 |
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. */ |