Simplify nosleep logic
authorMarco Costalba <mcostalba@gmail.com>
Wed, 18 Mar 2015 07:01:50 +0000 (08:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 18 Mar 2015 07:01:50 +0000 (08:01 +0100)
commit9a6cfee73bbad3051f888e6b8f8e88293763bf70
tree55da30c13e1f402e0719e3ff496d8c7c1af7aa2d
parent2e8552db76092a7e4fa8f7278231d66e26a756d9
Simplify nosleep logic

Avoid redundant 'while' conditions. It is enough to
check them in the outer loop.

Quick tested for no regression 10K games at 4 threads
ELO: -1.32 +-3.9 (95%) LOS: 25.6%
Total: 10000 W: 1653 L: 1691 D: 6656

No functional change.
src/search.cpp
src/thread.cpp