cvs commit: src/lib/libpthread/thread thr_create.cthr_private.h
thr_rwlock.c
Daniel Eischen
eischen at vigrid.com
Thu Jan 8 07:40:03 PST 2004
On Thu, 8 Jan 2004, Daniel Eischen wrote:
> deischen 2004/01/08 07:37:09 PST
>
> FreeBSD src repository
>
> Modified files:
> lib/libpthread/thread thr_create.c thr_private.h thr_rwlock.c
> Log:
> 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.
Reviewed by: davidxu
More information about the cvs-all
mailing list