X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=302895095f856927e9061f42eab8e7aab4c98c48;hp=dc839d441518d51f2f7204b7b6a5adbdbbcda8f7;hb=711ef615c7e8386365f5b16ed97d596399032235;hpb=a75aa6035b1ac27a6a2a44f523ec2ffd011485d8 diff --git a/src/thread.h b/src/thread.h index dc839d44..30289509 100644 --- a/src/thread.h +++ b/src/thread.h @@ -37,6 +37,7 @@ //// const int THREAD_MAX = 8; +const int ACTIVE_SPLIT_POINTS_MAX = 8; //// @@ -45,14 +46,14 @@ const int THREAD_MAX = 8; struct SplitPoint { SplitPoint *parent; - Position pos; - SearchStack sstack[THREAD_MAX][PLY_MAX]; + const Position* pos; + SearchStack sstack[THREAD_MAX][PLY_MAX_PLUS_2]; SearchStack *parentSstack; int ply; Depth depth; volatile Value alpha, beta, bestValue; + Value futilityValue; bool pvNode; - Bitboard dcCandidates; int master, slaves[THREAD_MAX]; Lock lock; MovePicker *mp; @@ -64,10 +65,9 @@ struct SplitPoint { struct Thread { SplitPoint *splitPoint; - int activeSplitPoints; + volatile int activeSplitPoints; uint64_t nodes; uint64_t betaCutOffs[2]; - bool failHighPly1; volatile bool stop; volatile bool running; volatile bool idle;