X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f4e1da977990f18d2b77e988cbbc4c1c0798370e;hp=08bf90f89845673b79b8197c40e17bab2eccc119;hb=4b88bea4fcd5c4cb931610f97460615dd71ff35b;hpb=39257509452a81db28538462e6581b05d1a4b7fb diff --git a/src/search.cpp b/src/search.cpp index 08bf90f8..f4e1da97 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -683,6 +683,10 @@ namespace { TB::ProbeState err; TB::WDLScore wdl = Tablebases::probe_wdl(pos, &err); + // Force check of time on the next occasion + if (thisThread == Threads.main()) + static_cast(thisThread)->callsCnt = 0; + if (err != TB::ProbeState::FAIL) { thisThread->tbHits.fetch_add(1, std::memory_order_relaxed);