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