From: Marco Costalba Date: Sat, 7 Apr 2012 10:47:37 +0000 (+0100) Subject: Don't need to wait after a "ponderhit" X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ce5b9727362e18bbf1494cf801df8510f5bc6b9f;hp=f30f384757499508ebc670a1c58b99737e2449db Don't need to wait after a "ponderhit" It is enough to wake up main thread. This is a better fix than d033d5e06a604f. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/uci.cpp b/src/uci.cpp index c6da2fc4..126cd5c4 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -87,7 +87,7 @@ void uci_loop(const string& args) { if (Search::Signals.stopOnPonderhit) { Search::Signals.stop = true; - Threads.wait_for_search_finished(); // Wake up if is sleeping + Threads.main_thread()->wake_up(); // Could be sleeping } }