]> git.sesse.net Git - stockfish/commitdiff
Better define wait_for_stop_or_ponderhit()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 6 Nov 2011 10:59:07 +0000 (11:59 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 6 Nov 2011 11:48:16 +0000 (12:48 +0100)
Use do_uci_async_cmd() instead of process input commands
directly and clarify that what we are waiting for is
something that is able to raise StopRequest flag.

Also fix some stale comments in do_uci_async_cmd(). Here
we need to reset Limits.ponder only upon receiving "ponderhit".
In the case of "quit" or "stop" resetting Limits.ponder has no
effect because the search is going to be stopped anyway.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found