]> git.sesse.net Git - stockfish/commit
After a "stop" do not read new input until search finishes
authorMarco Costalba <mcostalba@gmail.com>
Sun, 27 Nov 2011 11:16:23 +0000 (12:16 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 27 Nov 2011 11:19:33 +0000 (12:19 +0100)
commit6809b57cfc47321826f01253241afef8b4380612
tree854f2d54993ae2c40c3dfb850d58a1cc8acf8b04
parentffa75215cc06d105bc2b43ddb8ed5d4deccd8988
After a "stop" do not read new input until search finishes

Unfortunatly xboard sends immediately the new position to
search after sending "stop" when we have a ponder miss.

Becuase main thread position is not copied but is referenced
directly from root position and the latter is modified by
the "position.." UCI command we end up with the working position
that changes under our feet while the search is still recovering
after the "stop" and this causes a crash.

This happens only with the (broken) xboard, native UCI does not
have this problem.

Reported by otello1984

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/thread.cpp
src/thread.h
src/uci.cpp