X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=9cd63d9595476eeb2cd37bf2e7c7530a93b83a51;hp=a644cae9b64ede6d5a1e682cd62f5aff9b4e01af;hb=be3b8f3ae939b19dfd36ebff3f485395083a3ab9;hpb=c645aca199ac7db2ffcfc229b3cda8dafa6fb835 diff --git a/src/thread.cpp b/src/thread.cpp index a644cae9..9cd63d95 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -319,7 +319,6 @@ Value ThreadsManager::split(Position& pos, Stack* ss, Value alpha, Value beta, sp->master = master; sp->cutoff = false; sp->slavesMask = 1ULL << master->idx; - sp->allSlavesMask = 1ULL << master->idx; sp->depth = depth; sp->bestMove = *bestMove; sp->threatMove = threatMove; @@ -348,7 +347,6 @@ Value ThreadsManager::split(Position& pos, Stack* ss, Value alpha, Value beta, if (threads[i]->is_available_to(master)) { sp->slavesMask |= 1ULL << i; - sp->allSlavesMask |= 1ULL << i; threads[i]->curSplitPoint = sp; threads[i]->is_searching = true; // Slave leaves idle_loop() @@ -356,10 +354,7 @@ Value ThreadsManager::split(Position& pos, Stack* ss, Value alpha, Value beta, threads[i]->wake_up(); if (++slavesCnt + 1 >= maxThreadsPerSplitPoint) // Master is always included - { - sp->allSlavesMask = 0; // Disable reparenting to this split point break; - } } master->splitPointsCnt++;