]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Fix a data race for NNUE
[stockfish] / src / thread.h
index 46da1e348d128fbf01a8f39c458c8a57b3b94450..042bc2e9231588d5db2bd1fc4b5a097658df6399 100644 (file)
@@ -65,6 +65,7 @@ public:
   std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
 
   Position rootPos;
   std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
 
   Position rootPos;
+  StateInfo rootState;
   Search::RootMoves rootMoves;
   Depth rootDepth, completedDepth;
   CounterMoveHistory counterMoves;
   Search::RootMoves rootMoves;
   Depth rootDepth, completedDepth;
   CounterMoveHistory counterMoves;