]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Reduce lock contention in idle_loop
[stockfish] / src / thread.h
index beb09e4d5df5700a212bb08db0b84e5a7c161a9a..c93bcb4d9f8074d0c0c76b5d8afc4d6ef1c00704 100644 (file)
@@ -40,7 +40,6 @@ struct SplitPoint {
   Depth depth;
   Value beta;
   int nodeType;
-  int ply;
   int master;
   Move threatMove;
 
@@ -123,12 +122,12 @@ private:
   friend struct Thread;
 
   Thread threads[MAX_THREADS + 1]; // Last one is used as a timer
-  Lock threadsLock;
+  Lock splitLock;
+  WaitCondition sleepCond;
   Depth minimumSplitDepth;
   int maxThreadsPerSplitPoint;
   int activeThreads;
   bool useSleepingThreads;
-  WaitCondition sleepCond;
 };
 
 extern ThreadsManager Threads;