From 859cf8f3ff02a36585fc9479fd42cabbbf6bc4fa Mon Sep 17 00:00:00 2001 From: Christoph Rupp Date: Wed, 5 Dec 2018 20:22:35 +0100 Subject: Always enable error checks for mutexes (#305) --- cpp/include/IceUtil/Mutex.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp') 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 -- cgit v1.2.3