X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=inline;f=src%2Fcommon%2Fpthread-lock.hpp;h=b34b45935861ce3f131304d7b908a0eea734bd5e;hb=f250b40e2179eccdb83766bf4abef5a35036c47b;hp=d772187172f2987409190a3f3f1b8b3f07e03373;hpb=9d89db29f3bf6c826293350f8f1a8559ec906b24;p=lttng-tools.git diff --git a/src/common/pthread-lock.hpp b/src/common/pthread-lock.hpp index d77218717..b34b45935 100644 --- a/src/common/pthread-lock.hpp +++ b/src/common/pthread-lock.hpp @@ -26,7 +26,7 @@ namespace details { */ class mutex { public: - explicit mutex(pthread_mutex_t& mutex_p) : _mutex{ mutex_p } + explicit mutex(pthread_mutex_t& mutex_p) : _mutex(mutex_p) { } @@ -80,7 +80,7 @@ private: */ class lock_guard { public: - explicit lock_guard(pthread_mutex_t& mutex) : _mutex{ mutex }, _guard(_mutex) + explicit lock_guard(pthread_mutex_t& mutex) : _mutex(mutex), _guard(_mutex) { }