X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.h;h=c254047c23f4ce90a04415bcc97090f3c57aae0b;hb=69eb391cd779223c331fb0de80392cbd323055a9;hp=7666a34fbaba39110c181de72eb1e584f435a462;hpb=ecd3218b6b24bb54509dbe6e9b24517b7df7390d;p=stockfish diff --git a/src/thread.h b/src/thread.h index 7666a34f..c254047c 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; + std::atomic 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; };