X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=3512605c67aaa8120a0cfbea30012ca969894a41;hp=0f117c2d2a7426040424abce254b5ee57ed67618;hb=5410424e3d036b43715c7989aa99e449cdcde18e;hpb=3cb02004596f868ae405b09fbf3a2038a680a989 diff --git a/src/thread.h b/src/thread.h index 0f117c2d..3512605c 100644 --- a/src/thread.h +++ b/src/thread.h @@ -60,18 +60,16 @@ public: Material::Table materialTable; Endgames endgames; size_t idx, PVIdx; - int maxPly, callsCnt; - std::atomic tbHits; - std::atomic nodes; + int selDepth; + std::atomic nodes, tbHits; Position rootPos; Search::RootMoves rootMoves; - std::atomic rootDepth; + Depth rootDepth; Depth completedDepth; - std::atomic_bool resetCalls; - CounterMoveStat counterMoves; - ButterflyHistory history; - CounterMoveHistoryStat counterMoveHistory; + CounterMoveHistory counterMoves; + ButterflyHistory mainHistory; + ContinuationHistory contHistory; }; @@ -79,10 +77,12 @@ public: struct MainThread : public Thread { virtual void search(); + void check_time(); bool easyMovePlayed, failedLow; double bestMoveChanges; Value previousScore; + int callsCnt = 0; }; @@ -101,6 +101,8 @@ struct ThreadPool : public std::vector { uint64_t nodes_searched() const; uint64_t tb_hits() const; + std::atomic_bool stop, ponder, stopOnPonderhit; + private: StateListPtr setupStates; };