X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=f4e1da977990f18d2b77e988cbbc4c1c0798370e;hb=97d2122c53f75a74d4c8ab35e36378e3854773d9;hp=08bf90f89845673b79b8197c40e17bab2eccc119;hpb=39257509452a81db28538462e6581b05d1a4b7fb;p=stockfish 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);