#include "position.h"
#include "search.h"
-const int MAX_THREADS = 16;
+const int MAX_THREADS = 32;
const int MAX_ACTIVE_SPLIT_POINTS = 8;
struct SplitPoint {
SplitPoint* parent;
const Position* pos;
Depth depth;
- bool pvNode, mateThreat;
+ bool pvNode;
Value beta;
int ply;
int master;
};
struct Thread {
+ Lock sleepLock;
+ WaitCondition sleepCond;
volatile ThreadState state;
SplitPoint* volatile splitPoint;
volatile int activeSplitPoints;