From: Michal 'vorner' Vaner Date: Wed, 5 Sep 2012 10:57:20 +0000 (+0200) Subject: [2202] Don't use PTHREAD_MUTEX_ROBUST X-Git-Tag: trac2402_base~79^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382204ee795971bf6daeebb95f6134bab10ca18d;p=thirdparty%2Fkea.git [2202] Don't use PTHREAD_MUTEX_ROBUST It seems it isn't portable and it's not very useful check. --- diff --git a/src/lib/util/threads/lock.cc b/src/lib/util/threads/lock.cc index 16e59bd04c..e3e9f7e458 100644 --- a/src/lib/util/threads/lock.cc +++ b/src/lib/util/threads/lock.cc @@ -78,9 +78,7 @@ Mutex::Mutex(bool recursive) : if (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) { isc_throw(isc::InvalidOperation, strerror(result)); }