Fri Jan 16 03:43:39 PST 2009 Simon Marlow <[email protected]>
* UNDO: Always check the result of pthread_mutex_lock() and
pthread_mutex_unlock().
Ignore-this: 6cc82d384582097785d78fba46ca29d2
This patch caused problems on Mac OS X, undoing until we can do it better.
rolling back:
Sun Jan 4 19:24:43 GMT 2009 Matthias Kilian <[email protected]>
* Always check the result of pthread_mutex_lock() and
pthread_mutex_unlock().
Don't check pthread_mutex_*lock() only on Linux and/or only if DEBUG
is defined. The return values of those functions are well defined
and should be supported on all operation systems with pthreads. The
checks are cheap enough to do them even in the default build (without
-DDEBUG).
While here, recycle an unused macro ASSERT_LOCK_NOTHELD, and let
the debugBelch part enabled with -DLOCK_DEBUG work independently
of -DDEBUG.
M ./includes/OSThreads.h -30 +10
M ./includes/OSThreads.h -10 +30
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090116114339-12142-252785ca4e6f78654899eb71a4afacf7541168f5.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc