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().
This commit is contained in:
Max Kellermann
2013-01-11 10:50:59 +01:00
parent 9d770d6084
commit 0226440a2d
5 changed files with 137 additions and 4 deletions

View File

@@ -24,8 +24,8 @@
/* mingw-w64 4.6.3 lacks a std::cond implementation */
#include "GLibCond.hxx"
typedef GLibCond Cond;
#include "WindowsCond.hxx"
typedef WindowsCond Cond;
#else