X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=dc0c51c28d5c2401e415ccde5ce361b43061a3b9;hp=0f117c2d2a7426040424abce254b5ee57ed67618;hb=0371a8f8c4a043cb3e7d08b5b8e7d08d49f28324;hpb=3cb02004596f868ae405b09fbf3a2038a680a989 diff --git a/src/thread.h b/src/thread.h index 0f117c2d..dc0c51c2 100644 --- a/src/thread.h +++ b/src/thread.h @@ -60,15 +60,13 @@ public: Material::Table materialTable; Endgames endgames; size_t idx, PVIdx; - int maxPly, callsCnt; - std::atomic tbHits; - std::atomic nodes; + int maxPly; + 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; @@ -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; };