]> git.sesse.net Git - stockfish/commit
Don't 'break' upon returning from split()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 3 Nov 2012 13:37:10 +0000 (14:37 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 3 Nov 2012 13:54:38 +0000 (14:54 +0100)
commit07989712afa57e2542835980d8c518d79d90f36b
treeff0a6aa352b19de062ae03cbeddb4f18d140fee2
parentd0d69a53584397085b9936e0b373347b70a86531
Don't 'break' upon returning from split()

There is no guarantee that split() consumes all the node's
moves. Indeed split() can return without performing any job
for instance because MAX_SPLITPOINTS_PER_THREAD is reached
or becuase no available threads are found (this latter case
is much more common).

So search must continue in those cases and we cannot force
exiting from move's loop.

Bug introduced by 1ac417edb845 of 5/10/2012

Spotted by Frank Genot.

No functional change.
src/search.cpp