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
+1 -1
View File
@@ -1636,7 +1636,7 @@ void Thread::idle_loop() {
}
// Avoid races with notify_one() fired from last slave of the split point
std::unique_lock<std::mutex> lk(mutex);
std::unique_lock<Mutex> lk(mutex);
// If we are master and all slaves have finished then exit idle_loop
if (this_sp && this_sp->slavesMask.none())