]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Use size_t consistently across thread code
[stockfish] / src / thread.h
index 9750ed7ba020be8008007f482f7ab9e146e4c9dd..04e9a370cb9a5604ef7afa4a586263a3d594e28c 100644 (file)
@@ -31,8 +31,9 @@
 
 struct Thread;
 
-const int MAX_THREADS = 128;
-const int MAX_SPLITPOINTS_PER_THREAD = 8;
+const size_t MAX_THREADS = 128;
+const size_t MAX_SPLITPOINTS_PER_THREAD = 8;
+const size_t MAX_SLAVES_PER_SPLITPOINT = 4;
 
 /// Mutex and ConditionVariable struct are wrappers of the low level locking
 /// machinery and are modeled after the corresponding C++11 classes.
@@ -135,7 +136,7 @@ struct Thread : public ThreadBase {
   size_t idx;
   int maxPly;
   SplitPoint* volatile activeSplitPoint;
-  volatile int splitPointsSize;
+  volatile size_t splitPointsSize;
   volatile bool searching;
 };