Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2004 10:40:01 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libpthread/thread thr_create.cthr_private.h thr_rwlock.c
Message-ID:  <Pine.GSO.4.10.10401081039320.7267-100000@pcnet5.pcnet.com>
In-Reply-To: <200401081537.i08Fb9rW030254@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10401081039320.7267-100000>