X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=a29fd0f64772e9ae7048a52973697f5da99f7fc5;hp=043ada63d6fdd22306d5add2709b325fa768902d;hb=2f4a9a140ae7882365f64ac11cf263bd505418e6;hpb=dba1bc354a74bf7774c453ac779b3ce462c2b8e2 diff --git a/src/search.cpp b/src/search.cpp index 043ada63..a29fd0f6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1728,8 +1728,11 @@ void Thread::idle_loop() { // case we are the last slave of the split point. if ( Threads.use_sleeping_threads() && this != sp->master - && !sp->master->is_searching) + && !sp->slavesMask) + { + assert(!sp->master->is_searching); sp->master->wake_up(); + } // After releasing the lock we cannot access anymore any SplitPoint // related data in a safe way becuase it could have been released under