summaryrefslogtreecommitdiff
path: root/src/mutex.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-23 23:06:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-23 23:06:13 +0100
commit87c7bce04950b4901fd88343fb966f5ff30d4c0e (patch)
treeefc1e35281c916afb18fc13eb61d88ce297fa5eb /src/mutex.h
parent3d06f01a8c2767dcf1d6dfcab7d89b2a9a11571d (diff)
Possible fix to missing std::mutex in mingw.
Diffstat (limited to 'src/mutex.h')
-rw-r--r--src/mutex.h13
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