X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=c254047c23f4ce90a04415bcc97090f3c57aae0b;hp=86e5565f2e3363667bbf07a34a777fdec56f5b70;hb=05513a66410f96959f3a6e70be9aea72425cf7c7;hpb=99d914985f6ddb1ee22b232d41f17a35e1d34f89 diff --git a/src/thread.h b/src/thread.h index 86e5565f..c254047c 100644 --- a/src/thread.h +++ b/src/thread.h @@ -60,17 +60,16 @@ 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; + std::atomic rootDepth; Depth completedDepth; - std::atomic_bool resetCalls; - MoveStats counterMoves; - HistoryStats history; - CounterMoveHistoryStats counterMoveHistory; + 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; };