]> git.sesse.net Git - stockfish/commit
Move some stuff out of lock protection in split()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 19 Feb 2012 09:32:06 +0000 (10:32 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 19 Feb 2012 09:32:38 +0000 (10:32 +0100)
commit3441e0075decb1acd8d3b4020b7822f743613124
tree6e2ff0a79f8e3a00956071b87ef8a6796313ba8d
parent821e1c72337e435d805aa2e29743d8b79c9d65a9
Move some stuff out of lock protection in split()

We shouldn't need lock protection to increment
splitPointsCnt and set curSplitPoint of masterThread.

Anyhow because this code is very tricky and prone to
races bound the change in a single patch.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
src/thread.cpp