X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fpthread-lock.hpp;h=d19e3f3fbeb9ba066c19494ce209191859d2b495;hp=35fde097cadbf92ea6f6744bc236272c2120c5e7;hb=460bede77c5a79691a3e1fca03c2d64209038f31;hpb=52cb8c0f651ade8d057a264eea1de534ead36517 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(); } }