X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fpthread-lock.hpp;fp=src%2Fcommon%2Fpthread-lock.hpp;h=824b2f2a91ce03cacedaab5bf6d72c3fb2f8660e;hp=d19e3f3fbeb9ba066c19494ce209191859d2b495;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/common/pthread-lock.hpp b/src/common/pthread-lock.hpp index d19e3f3fb..824b2f2a9 100644 --- a/src/common/pthread-lock.hpp +++ b/src/common/pthread-lock.hpp @@ -26,7 +26,7 @@ namespace details { */ class mutex { public: - mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p} + explicit mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p} { } @@ -76,7 +76,7 @@ private: */ class lock_guard { public: - lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex) + explicit lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex) { }