From ce5b9727362e18bbf1494cf801df8510f5bc6b9f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 7 Apr 2012 11:47:37 +0100 Subject: [PATCH 1/1] 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 --- src/uci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- 2.39.2