X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=100620313fcebc7e7f5f6161fe15b600b0a9929e;hp=13121ca1175756ee4965f4af25e29dc339f7396b;hb=d15217b953af28669dd3e5b46303b3ca882f353e;hpb=bc54a44010e7a7fb55ee55afba65be029a9e423a diff --git a/src/thread.h b/src/thread.h index 13121ca1..10062031 100644 --- a/src/thread.h +++ b/src/thread.h @@ -37,8 +37,8 @@ struct SplitPoint { SplitPoint* parent; const Position* pos; Depth depth; - bool pvNode; Value beta; + int pvNode; int ply; int master; Move threatMove; @@ -79,6 +79,7 @@ struct Thread { bool cutoff_occurred() const; bool is_available_to(int master) const; + SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS]; MaterialInfoTable materialTable; PawnInfoTable pawnTable; int maxPly; @@ -87,7 +88,6 @@ struct Thread { volatile ThreadState state; SplitPoint* volatile splitPoint; volatile int activeSplitPoints; - SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS]; }; @@ -118,13 +118,13 @@ public: void split(Position& pos, SearchStack* ss, Value* alpha, const Value beta, Value* bestValue, Depth depth, Move threatMove, int moveCount, MovePicker* mp, bool pvNode); private: + Thread threads[MAX_THREADS]; Lock mpLock; Depth minimumSplitDepth; int maxThreadsPerSplitPoint; - bool useSleepingThreads; int activeThreads; + bool useSleepingThreads; volatile bool allThreadsShouldExit; - Thread threads[MAX_THREADS]; }; extern ThreadsManager Threads;