From d4c0f91275fe70fef73b316c36abfb989dfd55b1 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Tue, 6 Jun 2017 16:29:28 +0200 Subject: Use C++11 mutexes only (remove compat code) (#5922) * Fix event LINT & remove default constructor/destructors * remove compat code & modernize autolock header --- src/debug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/debug.cpp') diff --git a/src/debug.cpp b/src/debug.cpp index 8647160b1..0490fcf4e 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -27,7 +27,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include -#include "threading/mutex.h" #include "threading/mutex_auto_lock.h" #include "config.h" @@ -152,7 +151,7 @@ void DebugStack::print(std::ostream &os, bool everything) // pthread_t, but it isn't too important since none of our supported platforms // implement pthread_t as a non-ordinal type. std::map g_debug_stacks; -Mutex g_debug_stacks_mutex; +std::mutex g_debug_stacks_mutex; void debug_stacks_init() { -- cgit v1.2.3