summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-01-18 19:33:28 +0000
committerIan Lynagh <igloo@earth.li>2009-01-18 19:33:28 +0000
commit3be1d26ced96ec689f22c97fd1dc077e956cee5d (patch)
tree406a60aa2eed40d6785ae0dbffa78c3c5f5b180f /rts/posix
parentdd3d9333b2e2f6a0959bb4aebbad5bf23e968fb6 (diff)
downloadhaskell-3be1d26ced96ec689f22c97fd1dc077e956cee5d.tar.gz
Always use PTHREAD_MUTEX_ERRORCHECK to create mutexes when -DDEBUG
Linux defines PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP anyway, so there's no need to special-case it.
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSThreads.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index ee4958a2e8..6e01f82553 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -107,11 +107,7 @@ initMutex(Mutex* pMut)
#if defined(DEBUG)
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
-#if defined(linux_HOST_OS)
- pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_ERRORCHECK_NP);
-#else
pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_ERRORCHECK);
-#endif
pthread_mutex_init(pMut,&attr);
#else
pthread_mutex_init(pMut,NULL);