diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-23 23:06:13 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-23 23:06:13 +0100 |
commit | 87c7bce04950b4901fd88343fb966f5ff30d4c0e (patch) | |
tree | efc1e35281c916afb18fc13eb61d88ce297fa5eb /src/mutex.h | |
parent | 3d06f01a8c2767dcf1d6dfcab7d89b2a9a11571d (diff) |
Possible fix to missing std::mutex in mingw.
Diffstat (limited to 'src/mutex.h')
-rw-r--r-- | src/mutex.h | 13 |
1 files changed, 5 insertions, 8 deletions
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 |