X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=0b112de9b0f14540d414c506f61998053ad0c72e;hp=43ddfbb710b80643484c48302f32bc931f221b98;hb=20023ac9b8c28d8b15308d7bf5be4fad8501535d;hpb=356147d99ae6783d79861c32f128a98685024c58 diff --git a/src/thread.h b/src/thread.h index 43ddfbb7..0b112de9 100644 --- a/src/thread.h +++ b/src/thread.h @@ -64,7 +64,7 @@ public: int maxPly, callsCnt; Position rootPos; - Search::RootMoveVector rootMoves; + Search::RootMoves rootMoves; Depth rootDepth; HistoryStats history; MoveStats counterMoves; @@ -94,9 +94,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(const Position&, StateListPtr&, const Search::LimitsType&); void read_uci_options(); int64_t nodes_searched(); + +private: + StateListPtr setupStates; }; extern ThreadPool Threads;