X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpthread-lock.hpp;h=d19e3f3fbeb9ba066c19494ce209191859d2b495;hb=7d1f4920efe33a4d025b9ba632ffbe73557d9636;hp=35fde097cadbf92ea6f6744bc236272c2120c5e7;hpb=0a325f4dec3f6d553dad5d2c26ebfdc78201c363;p=lttng-tools.git diff --git a/src/common/pthread-lock.hpp b/src/common/pthread-lock.hpp index 35fde097c..d19e3f3fb 100644 --- a/src/common/pthread-lock.hpp +++ b/src/common/pthread-lock.hpp @@ -57,7 +57,10 @@ public: void unlock() { if (pthread_mutex_unlock(&_mutex) != 0) { - LTTNG_THROW_POSIX("Failed to unlock mutex", errno); + /* + * Unlock cannot throw as it is called as part of lock_guard's destructor. + */ + abort(); } }