const Position* pos;
Depth depth;
Value beta;
- int pvNode;
+ int nodeType;
int ply;
int master;
Move threatMove;
void idle_loop(int threadID, SplitPoint* sp);
template <bool Fake>
- void split(Position& pos, SearchStack* ss, Value* alpha, const Value beta, Value* bestValue,
- Depth depth, Move threatMove, int moveCount, MovePicker* mp, bool pvNode);
+ Value split(Position& pos, SearchStack* ss, Value alpha, Value beta, Value bestValue,
+ Depth depth, Move threatMove, int moveCount, MovePicker* mp, int nodeType);
private:
Thread threads[MAX_THREADS];
- Lock mpLock;
+ Lock threadsLock;
Depth minimumSplitDepth;
int maxThreadsPerSplitPoint;
int activeThreads;