X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=77517b07fe85aeb2212bd048a7c792c12c6a32eb;hp=7666a34fbaba39110c181de72eb1e584f435a462;hb=36a93d90f76d32e16a5f2acb09b7de2d67225021;hpb=ecd3218b6b24bb54509dbe6e9b24517b7df7390d diff --git a/src/thread.h b/src/thread.h index 7666a34f..77517b07 100644 --- a/src/thread.h +++ b/src/thread.h @@ -60,14 +60,13 @@ public: Material::Table materialTable; Endgames endgames; size_t idx, PVIdx; - int maxPly, callsCnt; - uint64_t tbHits; + int maxPly; + std::atomic nodes, tbHits; Position rootPos; Search::RootMoves rootMoves; Depth rootDepth; Depth completedDepth; - std::atomic_bool resetCalls; CounterMoveStat counterMoves; ButterflyHistory history; CounterMoveHistoryStat counterMoveHistory; @@ -78,10 +77,12 @@ public: struct MainThread : public Thread { virtual void search(); + void check_time(); bool easyMovePlayed, failedLow; double bestMoveChanges; Value previousScore; + int callsCnt = 0; }; @@ -100,6 +101,8 @@ struct ThreadPool : public std::vector { uint64_t nodes_searched() const; uint64_t tb_hits() const; + std::atomic_bool stop, stopOnPonderhit; + private: StateListPtr setupStates; };