X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=b4958ea32e22417527357b2b734e90fb0bf4eae8;hp=4b5d845bd83577992601f1306a881bdacb812d19;hb=9a6cfee73bbad3051f888e6b8f8e88293763bf70;hpb=2e8552db76092a7e4fa8f7278231d66e26a756d9 diff --git a/src/thread.cpp b/src/thread.cpp index 4b5d845b..b4958ea3 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -373,7 +373,5 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, RootMoves.push_back(RootMove(m)); main()->thinking = true; - - for (Thread* th : *this) - th->notify_one(); + main()->notify_one(); // Wake up main thread: 'thinking' must be already set }