Simplify and rename wait_for_stop_or_ponderhit()

Setting stopOnPonderhit is now done by the caller.

No functional change.
This commit is contained in:
Marco Costalba
2013-01-13 14:15:19 +01:00
parent 3b14b17664
commit 89a89eb605
3 changed files with 11 additions and 10 deletions

View File

@@ -265,7 +265,10 @@ finalize:
// but if we are pondering or in infinite search, we shouldn't print the best
// move before we are told to do so.
if (!Signals.stop && (Limits.ponder || Limits.infinite))
RootPos.this_thread()->wait_for_stop_or_ponderhit();
{
Signals.stopOnPonderhit = true;
RootPos.this_thread()->wait_for_stop();
}
// Best move could be MOVE_NONE when searching on a stalemate position
sync_cout << "bestmove " << move_to_uci(RootMoves[0].pv[0], RootPos.is_chess960())