X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=efcbdef00a52a9d37a1dc982f937b5ea7460588c;hb=ca3835857435590865fd41aac9bf4c1cda76dfc3;hp=17b93ce794035c4f63d94b9bc338805db1687389;hpb=c052e03426ce069b9db833ca3c8243f3e040ace7;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 17b93ce7..efcbdef0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -880,7 +880,6 @@ moves_loop: // When in check and at SpNode search starts from here && !captureOrPromotion && !inCheck && !givesCheck - && type_of(move) == NORMAL && !pos.advanced_pawn_push(move) && bestValue > VALUE_MATED_IN_MAX_PLY) { @@ -1625,8 +1624,13 @@ void Thread::idle_loop() { assert(searching); + spinlock.acquire(); + searching = false; activePosition = nullptr; + + spinlock.release(); + sp->slavesMask.reset(idx); sp->allSlavesSearching = false; sp->nodes += pos.nodes_searched();