diff options
author | Max Kellermann <max@duempel.org> | 2013-01-11 10:50:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-11 11:11:07 +0100 |
commit | 0226440a2d915e34139413803b3c9fbb261dd9c1 (patch) | |
tree | 98efb491b9b3dfc26b37593af35f49edb98d588a /src/thread/Mutex.hxx | |
parent | 9d770d6084cb90b99ab129ff0b9e1ef57aab9a83 (diff) |
thread/{Mutex,Cond}: new backend for WIN32
Use CRITICAL_SECTION and CONDITION_VARIABLE. This requires Windows
Vista or newer. It fixes problems with GLib threading objects that
were implicitly created by static constructors before g_thread_init().
Diffstat (limited to 'src/thread/Mutex.hxx')
-rw-r--r-- | src/thread/Mutex.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/Mutex.hxx b/src/thread/Mutex.hxx index d2ebf4d1..675af74b 100644 --- a/src/thread/Mutex.hxx +++ b/src/thread/Mutex.hxx @@ -24,8 +24,8 @@ /* mingw-w64 4.6.3 lacks a std::mutex implementation */ -#include "GLibMutex.hxx" -typedef GLibMutex Mutex; +#include "CriticalSection.hxx" +typedef CriticalSection Mutex; #else |