Retire slavesPositions

Save the current active position in each Thread
instead of keeping a centralized array in struct
SplitPoint.

This allow to skip a memset() call at each split.

No functional change.
This commit is contained in:
Marco Costalba
2013-02-08 11:04:07 +01:00
parent 880726c13a
commit e5bc79fb9c
3 changed files with 12 additions and 10 deletions

View File

@@ -75,7 +75,6 @@ struct SplitPoint {
// Shared data
Mutex mutex;
Position* slavesPositions[MAX_THREADS];
volatile uint64_t slavesMask;
volatile int64_t nodes;
volatile Value alpha;
@@ -110,6 +109,7 @@ struct Thread {
Material::Table materialTable;
Endgames endgames;
Pawns::Table pawnsTable;
Position* activePosition;
size_t idx;
int maxPly;
Mutex mutex;