patch applied (ghc): Reinstate: Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().

Ian Lynagh igloo at earth.li
Tue Jan 20 16:03:31 EST 2009


Sat Jan 17 12:09:55 PST 2009  Ian Lynagh <igloo at earth.li>
  * Reinstate: Always check the result of pthread_mutex_lock() and pthread_mutex_unlock().
  Sun Jan  4 19:24:43 GMT 2009  Matthias Kilian <kili at 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.

    M ./includes/OSThreads.h -30 +10

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090117200955-3fd76-a8e4d45a05c13ad6f9cbd80bb5e4f4db2a36d8d4.gz



More information about the Cvs-ghc mailing list