mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 05:07:14 +00:00
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:
+1
-1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user