X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=681acb8141a0e1b5d7c8def9569ce28e8bb15ffc;hp=a6f4d6bdd462d13a2472b8abd444f9b17881c554;hb=63a5fc2366ba215365f8ab246f4a910fcf31c38e;hpb=0da7295795448fc826cb5b2613ac64a6e0c4adcd diff --git a/src/search.cpp b/src/search.cpp index a6f4d6bd..681acb81 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1593,7 +1593,7 @@ void Thread::idle_loop() { if ( sp && sp->allSlavesSearching && sp->slavesMask.count() < MAX_SLAVES_PER_SPLITPOINT - && available_to(sp->master)) + && can_join(sp)) { assert(this != th); assert(!(this_sp && this_sp->slavesMask.none())); @@ -1623,7 +1623,7 @@ void Thread::idle_loop() { if ( sp->allSlavesSearching && sp->slavesMask.count() < MAX_SLAVES_PER_SPLITPOINT - && available_to(sp->master)) + && can_join(sp)) { sp->slavesMask.set(idx); activeSplitPoint = sp;