From 87c7bce04950b4901fd88343fb966f5ff30d4c0e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 23 Jan 2016 23:06:13 +0100 Subject: Possible fix to missing std::mutex in mingw. --- src/mutex.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/mutex.h') diff --git a/src/mutex.h b/src/mutex.h index 92c9f53..8c71733 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -45,14 +45,11 @@ private: #ifdef WIN32 // Hack: mingw doesn't have std::mutex namespace std { - class mutex - : public Mutex { -// public: -// bool try_lock() -// { -// return trylock(); -// } - }; +class mutex + : public Mutex { +public: + bool try_lock(); +}; } #endif -- cgit v1.2.3