Add thread_win32.h header

Workaround slow std::thread implementation in mingw
and gcc for Windows with our own old low level thread
functions.

No functional change.
This commit is contained in:
Marco Costalba
2015-03-10 12:42:40 +01:00
parent be50952533
commit 8725494966
5 changed files with 111 additions and 10 deletions

View File

@@ -146,7 +146,7 @@ void dbg_print() {
std::ostream& operator<<(std::ostream& os, SyncCout sc) {
static std::mutex m;
static Mutex m;
if (sc == IO_LOCK)
m.lock();