summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorChristoph Rupp <chris@crupp.de>2018-12-05 20:22:35 +0100
committerBernard Normier <bernard@zeroc.com>2018-12-05 14:22:35 -0500
commit859cf8f3ff02a36585fc9479fd42cabbbf6bc4fa (patch)
tree4b0f2a13bed4f2f7265c161ca5bc5fc468ad4947 /cpp
parentRemoves Ice.Application from IceBox in Java, Java-Compat, and C# (#314) (diff)
downloadice-859cf8f3ff02a36585fc9479fd42cabbbf6bc4fa.tar.bz2
ice-859cf8f3ff02a36585fc9479fd42cabbbf6bc4fa.tar.xz
ice-859cf8f3ff02a36585fc9479fd42cabbbf6bc4fa.zip
Always enable error checks for mutexes (#305)
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