Matthias Kilian wrote:
[sent to ian only by accident; resending to the list]
On Sun, Jan 18, 2009 at 12:17:28PM +0000, Ian Lynagh wrote:
In fact, looking at pthread.h on Linux:
#ifdef __USE_UNIX98
,
PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
#endif
so maybe we can just use PTHREAD_MUTEX_ERRORCHECK everywhere.
Yes. That should make ASSERT_LOCK_HELD work without blocking the
calling thread.
Thanks for looking into this folks. I've just added some commentary to
ASSERT_LOCK_HELD to make this dependency clear, I'll commit it shortly.
Cheers,
Simon
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc