At Sat, 27 Sep 2008 00:55:31 +0200,
Samuel Thibault wrote:
> There seems to be at least two issues:
> 
> if (_pthread_self ())
> 
> doesn't actually make sense since _pthread_self() already asserts(self),
> so the assertion will be triggered inside it.

This is true for the Hurd on Mach implementation of _pthread_self,
however, this is not the case for the Viengoos implementation.

> in the case of a normal mutex, now libpthread checks the owner when
> NDEBUG is not defined. The problem is that libc uses mutexes that have
> to be compatible with cthread mutexes, so we shouldn't use the owner
> field at all (since libc won't have allocated it).

You're right, I forgot about that.

I'll have to rethink this bit.

Neal


Reply via email to