Browse Source

[2202] Don't use PTHREAD_MUTEX_ROBUST

It seems it isn't portable and it's not very useful check.
Michal 'vorner' Vaner 12 years ago
parent
commit
382204ee79
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/lib/util/threads/lock.cc

+ 1 - 3
src/lib/util/threads/lock.cc

@@ -78,9 +78,7 @@ Mutex::Mutex(bool recursive) :
     if (recursive) {
     if (recursive) {
         type = PTHREAD_MUTEX_RECURSIVE;
         type = PTHREAD_MUTEX_RECURSIVE;
     }
     }
-    // Stop on first error you find and store the result.
-    result = pthread_mutexattr_settype(&attributes, type) ||
-        pthread_mutexattr_setrobust(&attributes, PTHREAD_MUTEX_ROBUST);
+    result = pthread_mutexattr_settype(&attributes, type);
     if (result != 0) {
     if (result != 0) {
         isc_throw(isc::InvalidOperation, strerror(result));
         isc_throw(isc::InvalidOperation, strerror(result));
     }
     }