summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/pthread_private.h
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2004-01-08 15:37:09 +0000
committerdeischen <deischen@FreeBSD.org>2004-01-08 15:37:09 +0000
commitb5d5c1e2e6eed84babb0064d131368e6e1f33819 (patch)
treef5c5e554641a7502ee565fa9bd6da4230affaab6 /lib/libc_r/uthread/pthread_private.h
parentc71c484186b980c3641d396aa5fc5b735da4e63f (diff)
downloadFreeBSD-src-b5d5c1e2e6eed84babb0064d131368e6e1f33819.zip
FreeBSD-src-b5d5c1e2e6eed84babb0064d131368e6e1f33819.tar.gz
Add a simple work-around for deadlocking on recursive read locks
on a rwlock while there are writers waiting. We normally favor writers but when a reader already has at least one other read lock, we favor the reader. We don't track all the rwlocks owned by a thread, nor all the threads that own a rwlock -- we just keep a count of all the read locks owned by a thread. PR: 24641
Diffstat (limited to 'lib/libc_r/uthread/pthread_private.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud