From 6f5a92dd172c5b0e424499b0c49cca90865859f6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 23 Jan 2016 23:21:22 +0100 Subject: Possible fix to missing std::mutex in mingw. --- src/mutex.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/mutex.h') diff --git a/src/mutex.h b/src/mutex.h index 8c71733..4659a07 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -34,7 +34,7 @@ public: Mutex(); ~Mutex(); - bool trylock(); + bool try_lock(); void lock(); void unlock(); @@ -45,11 +45,7 @@ private: #ifdef WIN32 // Hack: mingw doesn't have std::mutex namespace std { -class mutex - : public Mutex { -public: - bool try_lock(); -}; + class mutex : public Mutex {}; } #endif -- cgit v1.2.3