mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Remove a couple of useless thread_should_stop() calls
We test for it anyway few lines below and even under lock protection. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1851,12 +1851,6 @@ namespace {
|
||||
|
||||
assert(value > -VALUE_INFINITE && value < VALUE_INFINITE);
|
||||
|
||||
if (TM.thread_should_stop(threadID))
|
||||
{
|
||||
lock_grab(&(sp->lock));
|
||||
break;
|
||||
}
|
||||
|
||||
// New best move?
|
||||
if (value > sp->bestValue) // Less then 2% of cases
|
||||
{
|
||||
@@ -1978,12 +1972,6 @@ namespace {
|
||||
|
||||
assert(value > -VALUE_INFINITE && value < VALUE_INFINITE);
|
||||
|
||||
if (TM.thread_should_stop(threadID))
|
||||
{
|
||||
lock_grab(&(sp->lock));
|
||||
break;
|
||||
}
|
||||
|
||||
// New best move?
|
||||
if (value > sp->bestValue) // Less then 2% of cases
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user