]> git.sesse.net Git - stockfish/commit
Fix an hang when max depth is reached
authorMarco Costalba <mcostalba@gmail.com>
Thu, 29 Mar 2012 19:04:27 +0000 (20:04 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 29 Mar 2012 19:04:27 +0000 (20:04 +0100)
commit5e18b81e870dd44dd8fadab1a4e428d79e6b09d9
tree4fd772b3b3dae66f3f7171cfe41b19b1aa2fc0f5
parent10e64e05094e75d89baa4495fa867a8a64195bb7
Fix an hang when max depth is reached

In this case SF stop searching and goes sleeping
waiting for a stop / ponderhit before to return
best move. So when a "stop" arrives we need to wake
up the main thread again.

Another regression introduced by 3aa471f2a9cb,
hopefully the last one.

Thanks to Otello1984 to reporting this.

No functional change.

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