X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.h;h=a69e1d10e4556d155e1a117be85aee13e0445471;hb=527d832a6de81c455cc8818e85c309fa1443f862;hp=41d2b8f6d271769df032888d7c633bb7c20a6581;hpb=b8c00efa2767ebf74545d2ba4bd344ef7c963319;p=stockfish diff --git a/src/thread.h b/src/thread.h index 41d2b8f6..a69e1d10 100644 --- a/src/thread.h +++ b/src/thread.h @@ -88,7 +88,7 @@ struct MainThread : public Thread { void check_time(); double previousTimeReduction; - Value previousScore; + Value bestPreviousScore; Value iterValue[4]; int callsCnt; bool stopOnPonderhit; @@ -109,6 +109,9 @@ struct ThreadPool : public std::vector { MainThread* main() const { return static_cast(front()); } uint64_t nodes_searched() const { return accumulate(&Thread::nodes); } uint64_t tb_hits() const { return accumulate(&Thread::tbHits); } + Thread* get_best_thread() const; + void start_searching(); + void wait_for_search_finished() const; std::atomic_bool stop, increaseDepth;