]> git.sesse.net Git - stockfish/commit
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)
commit512a4e4ff044aeddebc0df42b7fbabb365f9a22d
tree8ed2000e38bbbb2213d12625b1b9bebde859d8a6
parent2da290d72b4174fd36186261faba1eb8722e0ac8
Recursive lock all split point's chain

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