]> git.sesse.net Git - stockfish/commitdiff
Recursive lock all split point's chain
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Feb 2010 17:29:53 +0000 (18:29 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Feb 2010 17:29:53 +0000 (18:29 +0100)
When we found a cut-off then lock all the split point chain,
not only current one to avoid races in case two threads running
on different split points where one is ancestor then the other,
find a beta cut-off at the same time, in this case we want only
one to call sp_update_pv().

No functional change.

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

No differences found