-struct Thread;
-
-struct SplitPoint {
-
- // Const data after split point has been setup
- const Position* pos;
- const Search::Stack* ss;
- Thread* masterThread;
- Depth depth;
- Value beta;
- int nodeType;
- Move threatMove;
-
- // Const pointers to shared data
- MovePicker* movePicker;
- SplitPoint* parentSplitPoint;
-
- // Shared data
- Mutex mutex;
- Position* slavesPositions[MAX_THREADS];
- volatile uint64_t slavesMask;
- volatile int64_t nodes;
- volatile Value alpha;
- volatile Value bestValue;
- volatile Move bestMove;
- volatile int moveCount;
- volatile bool cutoff;
+ Pawns::Table pawnsTable;
+ Material::Table materialTable;
+ size_t pvIdx, pvLast;
+ RunningAverage doubleExtensionAverage[COLOR_NB];
+ uint64_t nodesLastExplosive;
+ uint64_t nodesLastNormal;
+ std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
+ Value bestValue;
+ int selDepth, nmpMinPly;
+ Color nmpColor;
+ ExplosionState state;
+ Value optimism[COLOR_NB];
+
+ Position rootPos;
+ StateInfo rootState;
+ Search::RootMoves rootMoves;
+ Depth rootDepth, completedDepth;
+ Value rootDelta;
+ CounterMoveHistory counterMoves;
+ ButterflyHistory mainHistory;
+ LowPlyHistory lowPlyHistory;
+ CapturePieceToHistory captureHistory;
+ ContinuationHistory continuationHistory[2][2];
+ Score trend;