X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=408aaef751b4c784f0e8a6425266751d13512a43;hp=43ddfbb710b80643484c48302f32bc931f221b98;hb=ca677526452823d1fe89543762edb66684e7bdc7;hpb=356147d99ae6783d79861c32f128a98685024c58 diff --git a/src/thread.h b/src/thread.h index 43ddfbb7..408aaef7 100644 --- a/src/thread.h +++ b/src/thread.h @@ -62,14 +62,17 @@ public: Endgames endgames; size_t idx, PVIdx; int maxPly, callsCnt; + uint64_t tbHits; Position rootPos; - Search::RootMoveVector rootMoves; + Search::RootMoves rootMoves; Depth rootDepth; - HistoryStats history; - MoveStats counterMoves; Depth completedDepth; std::atomic_bool resetCalls; + HistoryStats history; + MoveStats counterMoves; + FromToStats fromTo; + CounterMoveHistoryStats counterMoveHistory; }; @@ -94,9 +97,13 @@ struct ThreadPool : public std::vector { void exit(); // be initialized and valid during the whole thread lifetime. MainThread* main() { return static_cast(at(0)); } - void start_thinking(const Position&, const Search::LimitsType&, Search::StateStackPtr&); + void start_thinking(Position&, StateListPtr&, const Search::LimitsType&); void read_uci_options(); - int64_t nodes_searched(); + uint64_t nodes_searched(); + uint64_t tb_hits(); + +private: + StateListPtr setupStates; }; extern ThreadPool Threads;