]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Contempt factor: use DrawValue also in case of stealmates
[stockfish] / src / thread.h
index 38a29e8dc00d6c07bd88f097830ff8ce3d378a4c..6817e20e53e78fb0d9be02d2031ab3439d10d13d 100644 (file)
@@ -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 <bool Fake>
   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<Thread*> threads;
   Thread* timer;