summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/IceUtil/Mutex.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/include/IceUtil/Mutex.h b/cpp/include/IceUtil/Mutex.h
index 639aaab421b..1748b4dd95f 100644
--- a/cpp/include/IceUtil/Mutex.h
+++ b/cpp/include/IceUtil/Mutex.h
@@ -235,9 +235,8 @@ Mutex::init(MutexProtocol
}
//
- // Enable mutex error checking in debug builds
+ // Enable mutex error checking
//
-#ifndef NDEBUG
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
assert(rc == 0);
if(rc != 0)
@@ -245,7 +244,6 @@ Mutex::init(MutexProtocol
pthread_mutexattr_destroy(&attr);
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
-#endif
//
// If system has support for priority inheritance we set the protocol