projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: pthread::mutex unlock must not throw
[deliverable/lttng-tools.git]
/
src
/
common
/
pthread-lock.hpp
diff --git
a/src/common/pthread-lock.hpp
b/src/common/pthread-lock.hpp
index 35fde097cadbf92ea6f6744bc236272c2120c5e7..d19e3f3fbeb9ba066c19494ce209191859d2b495 100644
(file)
--- 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();
}
}
This page took
0.025771 seconds
and
5
git commands to generate.