bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] libthreads: mutex_lock holder debugging


From: Samuel Thibault
Subject: Re: [PATCH] libthreads: mutex_lock holder debugging
Date: Fri, 3 Sep 2010 22:27:29 +0200
User-agent: Mutt/1.5.12-2006-07-14

Hello,

Sergio Lopez, le Fri 14 May 2010 12:35:41 +0200, a écrit :
> The original WAIT_DEBUG code in libthreads records the
> thread which is holding the lock, but this is not really usefull in
> Hurd's translators, since that thread is probably waiting for another
> message just as everyone else, thus hiding the path that forgot to
> unlock the mutex.
> 
> This patch changes mutex_lock/mutex_unlock macros to hold a pointer to
> the name of the function that holds the mutex.

As the old behavior may still be useful, I have preferred to rewrite
this to let the programmer decide one way or the other.

Samuel



reply via email to

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