X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=b4958ea32e22417527357b2b734e90fb0bf4eae8;hb=966bc477af9eae9be63b08111a76e8306263e4a3;hp=4b5d845bd83577992601f1306a881bdacb812d19;hpb=13d4df95cd4c56c0e730328648de54d9ed8bd81e;p=stockfish 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 }