mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Document struct SplitPoint fields constness
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
b9537edbb0
commit
79b57dd4ca
1 changed files with 16 additions and 10 deletions
22
src/thread.h
22
src/thread.h
|
@ -47,18 +47,24 @@ const int ACTIVE_SPLIT_POINTS_MAX = 8;
|
||||||
////
|
////
|
||||||
|
|
||||||
struct SplitPoint {
|
struct SplitPoint {
|
||||||
|
|
||||||
|
// Const data after splitPoint has been setup
|
||||||
SplitPoint* parent;
|
SplitPoint* parent;
|
||||||
const Position* pos;
|
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;
|
bool pvNode;
|
||||||
int master, slaves[MAX_THREADS];
|
Depth depth;
|
||||||
Lock lock;
|
Value beta, futilityValue;
|
||||||
|
int ply, master, slaves[MAX_THREADS];
|
||||||
|
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
|
||||||
|
|
||||||
|
// Const pointers to shared data
|
||||||
MovePicker* mp;
|
MovePicker* mp;
|
||||||
|
SearchStack* parentSstack;
|
||||||
|
|
||||||
|
// Shared data
|
||||||
|
Lock lock;
|
||||||
|
volatile Value alpha;
|
||||||
|
volatile Value bestValue;
|
||||||
volatile int moves;
|
volatile int moves;
|
||||||
volatile int cpus;
|
volatile int cpus;
|
||||||
volatile bool stopRequest;
|
volatile bool stopRequest;
|
||||||
|
|
Loading…
Add table
Reference in a new issue