bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a recursive lock prototype


From: Marcus Brinkmann
Subject: Re: a recursive lock prototype
Date: Tue, 10 Jul 2001 01:23:02 +0200
User-agent: Mutt/1.3.18i

On Sun, Jul 08, 2001 at 12:38:39PM -0700, Thomas Bushnell, BSG wrote:
> Marcus Brinkmann <brinkmd@master.debian.org> writes:
> 
> > In the fully unlocked state, RL->locking_thread is MACH_PORT_NULL.
> > How can this match mach_thread_self() of thread 1?
> 
> Oh, I take it back.  Hrm, it appears that your implementation is fine
> after all.... sorry! :-/

Your confident made us look at it twice, which is a good thing.
 
> I do still think that using recursive locks is a bad idea...

We can talk about this for the Hurd (I think we can do fine with a small
interface change), but at least in the dynamic linker there has to be a
recursive lock (there is a XXX in the code for that, we will deadlock on the
second invocation.  But I don't know under which circumstances this will
happen.)

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]