]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Retire extensions as UCI option
[stockfish] / src / thread.h
index 463739fe2eff7c39617ad66ee59953214731676a..b476d529f4d3a1455e662958a8190a6094178870 100644 (file)
@@ -36,7 +36,7 @@ struct SplitPoint {
   SplitPoint* parent;
   const Position* pos;
   Depth depth;
-  bool pvNode, mateThreat;
+  bool pvNode;
   Value beta;
   int ply;
   int master;
@@ -68,10 +68,19 @@ enum ThreadState
 };
 
 struct Thread {
+  int maxPly;
+  Lock sleepLock;
+  WaitCondition sleepCond;
   volatile ThreadState state;
   SplitPoint* volatile splitPoint;
   volatile int activeSplitPoints;
   SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
+
+  void wake_up() {
+    lock_grab(&sleepLock);
+    cond_signal(&sleepCond);
+    lock_release(&sleepLock);
+  }
 };
 
 #endif // !defined(THREAD_H_INCLUDED)