X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=195c3b3b919e2d07afaeee3fd11be02012003550;hp=54f4ba064d0069fe30a35d7a8210a2b3089d5a3f;hb=e1f600f1860ccf4c3da61a7b41666f15555bb06c;hpb=89723339d93c87f52e148080d5b1dc101ee76685 diff --git a/src/thread.h b/src/thread.h index 54f4ba06..195c3b3b 100644 --- a/src/thread.h +++ b/src/thread.h @@ -64,12 +64,14 @@ public: int maxPly, callsCnt; 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; }; @@ -80,7 +82,7 @@ struct MainThread : public Thread { bool easyMovePlayed, failedLow; double bestMoveChanges; - Value previousMoveScore; + Value previousScore; }; @@ -94,9 +96,12 @@ 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(); + +private: + StateListPtr setupStates; }; extern ThreadPool Threads;