]> git.sesse.net Git - stockfish/commitdiff
Retire per-thread stopRequest flag
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Feb 2010 16:52:09 +0000 (17:52 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Feb 2010 16:52:09 +0000 (17:52 +0100)
This is a per split-point request, not per-thread. When we find
a beta cut-off in current thread's split point or in or in some
ancestor of the current split point then threads should stop
immediately the search and return to idle_loop().

The check is done by thread_should_stop() that now looks only
at split point's chain.

No functional change and a good semplification.

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

No differences found