diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-06 16:29:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 16:29:28 +0200 |
commit | d4c0f91275fe70fef73b316c36abfb989dfd55b1 (patch) | |
tree | 6bbd5ebbdbac352c2991854fd88d84abe3ac2224 /src/debug.cpp | |
parent | 8bdde45895658f16aa6b2546ccb59c5c4c9fc699 (diff) | |
download | minetest-d4c0f91275fe70fef73b316c36abfb989dfd55b1.tar.gz minetest-d4c0f91275fe70fef73b316c36abfb989dfd55b1.tar.bz2 minetest-d4c0f91275fe70fef73b316c36abfb989dfd55b1.zip |
Use C++11 mutexes only (remove compat code) (#5922)
* Fix event LINT & remove default constructor/destructors
* remove compat code & modernize autolock header
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 <cstring> #include <map> #include <sstream> -#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<threadid_t, DebugStack*> g_debug_stacks; -Mutex g_debug_stacks_mutex; +std::mutex g_debug_stacks_mutex; void debug_stacks_init() { |