]> git.sesse.net Git - stockfish/commit
Split also if no slaves are found
authorMarco Costalba <mcostalba@gmail.com>
Sat, 15 Mar 2014 22:43:35 +0000 (23:43 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 15 Mar 2014 22:43:35 +0000 (23:43 +0100)
commita091ae4cc8ec12fc43a5e6b26d7e82125f7eff3e
tree58d343e6a7d631cff1299e94cbbfe603f52f86a5
parenta1a7bc84da4a6f180179e437494dd485cba1711d
Split also if no slaves are found

Because we test for available slaves before
entering split(), we almost always allocate a
slave, only in the rare case of a race (less
then 2% of cases) this is not true, but to
special case this occurrence is not worth
the added complexity.

bench: 7451319
src/thread.cpp