Date: Thu, 8 Jan 2004 10:43:53 -0500 (EST) From: Daniel Eischen <eischen@vigrid.com> To: Earl Chew <earl_chew@agilent.com> Cc: freebsd-threads@freebsd.org Subject: Re: misc/24641: pthread_rwlock_rdlock can deadlock Message-ID: <Pine.GSO.4.10.10401081042120.10354-100000@pcnet5.pcnet.com> In-Reply-To: <3FFA0958.3020307@agilent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jan 2004, Earl Chew wrote: > However, it appears counter-intuitive to me that if a thread has already > acquired a rdlock(), and the rdlock() is recursive, that a subsequent > call should fail. > > Failure should indicate that the lock could not be acquired. But the > thread _already_ has the lock! So it's hard to explain why the > subsequent call should fail (given the requirement that the > rdlock be recursive). I committed a fix for this in both libc_r and libkse.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10401081042120.10354-100000>