aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/Mutex.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/thread/Mutex.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/thread/Mutex.hxx b/src/thread/Mutex.hxx
index df8d140c6..675af74b1 100644
--- a/src/thread/Mutex.hxx
+++ b/src/thread/Mutex.hxx
@@ -27,6 +27,14 @@
#include "CriticalSection.hxx"
typedef CriticalSection Mutex;
+#else
+
+#include "PosixMutex.hxx"
+
+typedef PosixMutex Mutex;
+
+#endif
+
class ScopeLock {
Mutex &mutex;
@@ -43,12 +51,4 @@ public:
ScopeLock &operator=(const ScopeLock &other) = delete;
};
-#else
-
-#include <mutex>
-typedef std::mutex Mutex;
-typedef std::lock_guard<std::mutex> ScopeLock;
-
-#endif
-
#endif