Retire splitPoint->cpus field

It is redundant with splitPoint->slaves[].

Also move slaves[MAX_THREADS] among the shared data in
SplitPoint definition as it should have been already.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-05-12 10:35:10 +02:00
parent 2cec7347db
commit 16d6faf479
2 changed files with 18 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ struct SplitPoint {
Depth depth;
bool pvNode, mateThreat;
Value beta;
int ply, master, slaves[MAX_THREADS];
int ply, master;
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
// Const pointers to shared data
@@ -66,8 +66,8 @@ struct SplitPoint {
volatile Value alpha;
volatile Value bestValue;
volatile int moves;
volatile int cpus;
volatile bool stopRequest;
volatile int slaves[MAX_THREADS];
};
// ThreadState type is used to represent thread's current state