]> git.sesse.net Git - stockfish/commit
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)
commit2da290d72b4174fd36186261faba1eb8722e0ac8
tree1d8e2382ba87048bc7d243850eccca1378c23b23
parentb39a24ecca28620239818ca393a46a47f9d42824
Retire per-thread stopRequest flag

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>
src/search.cpp
src/thread.h