1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00: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:
Marco Costalba 2010-02-20 23:48:54 +01:00
parent 8b99e94562
commit 2de2b76896

View file

@ -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
{