X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=6817e20e53e78fb0d9be02d2031ab3439d10d13d;hp=38a29e8dc00d6c07bd88f097830ff8ce3d378a4c;hb=55bd27b8f08a151128d7065fa2819aa3e9605299;hpb=8dcb4bc3cce1f487cfac65ed20d21378d0f39b2e diff --git a/src/thread.h b/src/thread.h index 38a29e8d..6817e20e 100644 --- a/src/thread.h +++ b/src/thread.h @@ -75,6 +75,7 @@ struct SplitPoint { // Shared data Mutex mutex; + Position* activePositions[MAX_THREADS]; volatile uint64_t slavesMask; volatile int64_t nodes; volatile Value alpha; @@ -150,9 +151,10 @@ public: template Value split(Position& pos, Search::Stack* ss, Value alpha, Value beta, Value bestValue, Move* bestMove, - Depth depth, Move threatMove, int moveCount, MovePicker* mp, int nodeType); + Depth depth, Move threatMove, int moveCount, MovePicker& mp, int nodeType); private: friend class Thread; + friend void check_time(); std::vector threads; Thread* timer;