X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=dc0c51c28d5c2401e415ccde5ce361b43061a3b9;hp=4d22d643c0360926f117709ee05c988bc1b6bb9d;hb=0371a8f8c4a043cb3e7d08b5b8e7d08d49f28324;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c diff --git a/src/thread.h b/src/thread.h index 4d22d643..dc0c51c2 100644 --- a/src/thread.h +++ b/src/thread.h @@ -22,7 +22,6 @@ #define THREAD_H_INCLUDED #include -#include #include #include #include @@ -61,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; Depth completedDepth; - std::atomic_bool resetCalls; - MoveStats counterMoves; - HistoryStats history; - CounterMoveHistoryStats counterMoveHistory; + CounterMoveStat counterMoves; + ButterflyHistory history; + CounterMoveHistoryStat counterMoveHistory; }; @@ -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; };