[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
- a recursive lock prototype, moshez, 2001/07/04
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/04
- Re: a recursive lock prototype, Niels Möller, 2001/07/05
- Re: a recursive lock prototype, Marcus Brinkmann, 2001/07/05
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/05
- Re: a recursive lock prototype, Marcus Brinkmann, 2001/07/06
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/06
- Re: a recursive lock prototype, Marcus Brinkmann, 2001/07/07
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/08
- Re: a recursive lock prototype,
Marcus Brinkmann <=
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/10
- Re: a recursive lock prototype, Thomas Bushnell, BSG, 2001/07/05
- Re: a recursive lock prototype, Igor Khavkine, 2001/07/05
- Re: a recursive lock prototype, Roland McGrath, 2001/07/05