1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 11:39:15 +00:00

Don't need to wait after a "ponderhit"

It is enough to wake up main thread. This is
a better fix than d033d5e06a.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2012-04-07 11:47:37 +01:00
parent f30f384757
commit ce5b972736

View file

@ -87,7 +87,7 @@ void uci_loop(const string& args) {
if (Search::Signals.stopOnPonderhit) if (Search::Signals.stopOnPonderhit)
{ {
Search::Signals.stop = true; Search::Signals.stop = true;
Threads.wait_for_search_finished(); // Wake up if is sleeping Threads.main_thread()->wake_up(); // Could be sleeping
} }
} }