mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Document struct SplitPoint fields constness
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
22
src/thread.h
22
src/thread.h
@@ -47,18 +47,24 @@ const int ACTIVE_SPLIT_POINTS_MAX = 8;
|
||||
////
|
||||
|
||||
struct SplitPoint {
|
||||
|
||||
// Const data after splitPoint has been setup
|
||||
SplitPoint* parent;
|
||||
const Position* pos;
|
||||
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
|
||||
SearchStack *parentSstack;
|
||||
int ply;
|
||||
Depth depth;
|
||||
volatile Value alpha, beta, bestValue;
|
||||
Value futilityValue;
|
||||
bool pvNode;
|
||||
int master, slaves[MAX_THREADS];
|
||||
Lock lock;
|
||||
Depth depth;
|
||||
Value beta, futilityValue;
|
||||
int ply, master, slaves[MAX_THREADS];
|
||||
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
|
||||
|
||||
// Const pointers to shared data
|
||||
MovePicker* mp;
|
||||
SearchStack* parentSstack;
|
||||
|
||||
// Shared data
|
||||
Lock lock;
|
||||
volatile Value alpha;
|
||||
volatile Value bestValue;
|
||||
volatile int moves;
|
||||
volatile int cpus;
|
||||
volatile bool stopRequest;
|
||||
|
||||
Reference in New Issue
Block a user