diff options
author | Ian Lynagh <igloo@earth.li> | 2009-01-17 20:09:55 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-01-17 20:09:55 +0000 |
commit | ee8e3c3f0124c6ca53fecae80a673c79168dedf8 (patch) | |
tree | d6cfe7d8dcf07f35bc1dd47f7296c1c27e6ed58d /rts/posix | |
parent | b2391c27ecf7163cc2b08697742c8fa20783ea3c (diff) | |
download | haskell-ee8e3c3f0124c6ca53fecae80a673c79168dedf8.tar.gz |
Reinstate: Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().
Sun Jan 4 19:24:43 GMT 2009 Matthias Kilian <kili@outback.escape.de>
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.
Diffstat (limited to 'rts/posix')
0 files changed, 0 insertions, 0 deletions