UNDO: Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().
authorSimon Marlow <marlowsd@gmail.com>
Fri, 16 Jan 2009 11:43:39 +0000 (11:43 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 16 Jan 2009 11:43:39 +0000 (11:43 +0000)
commitb2d4af35427f9b195ba9987f5ce6b48fb2a5de64
tree18523cab2d9b5e27385417c6af60f87ab38c9f9a
parent09c5b3c4ef3dcbaa35d829d57edf25eca279f8c1
UNDO: Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().
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 <kili@outback.escape.de>
  * 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
includes/OSThreads.h