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:
parent
8b99e94562
commit
2de2b76896
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue