//// Constants and variables
////
-const int MAX_THREADS = 8;
+const int MAX_THREADS = 16;
const int MAX_ACTIVE_SPLIT_POINTS = 8;
bool pvNode, mateThreat;
Value beta;
int ply;
+ int master;
Move threatMove;
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
// Shared data
Lock lock;
+ volatile int64_t nodes;
volatile Value alpha;
volatile Value bestValue;
volatile int moveCount;
- volatile bool stopRequest;
+ volatile bool betaCutoff;
volatile int slaves[MAX_THREADS];
};
};
struct Thread {
- uint64_t nodes;
volatile ThreadState state;
SplitPoint* volatile splitPoint;
volatile int activeSplitPoints;