Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().
authorMatthias Kilian <kili@outback.escape.de>
Sun, 4 Jan 2009 19:24:43 +0000 (19:24 +0000)
committerMatthias Kilian <kili@outback.escape.de>
Sun, 4 Jan 2009 19:24:43 +0000 (19:24 +0000)
commitb1fef4d841255de5aa93052603527988c10e23cd
treed323bb20ea244a5cb695168e427602683c33978a
parent1aaac3473d8fce705610e4a6437283f7401a5583
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.
includes/OSThreads.h