Import CStringView from the Babeltrace tree
[lttng-tools.git] / src / common / pthread-lock.hpp
index d772187172f2987409190a3f3f1b8b3f07e03373..7d037e47226cf2469503bf30b8073915fb134349 100644 (file)
@@ -10,8 +10,8 @@
 
 #include <common/exception.hpp>
 
-#include <pthread.h>
 #include <mutex>
+#include <pthread.h>
 
 namespace lttng {
 namespace pthread {
@@ -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)
        {
        }
 
This page took 0.023141 seconds and 4 git commands to generate.