X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fpthread-lock.hpp;h=b34b45935861ce3f131304d7b908a0eea734bd5e;hp=d772187172f2987409190a3f3f1b8b3f07e03373;hb=5e3b23be3e32286f21523711f6c0fdf5b482a554;hpb=40ebe2193c00a3b67294ad38b47537cdd68b0e82 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) { }