]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Retire redundant sp->slavesCount field
[stockfish] / src / thread.h
index 0265ee670b2ea9e84765a8b6208f8b1f8ccb2e9c..42c44aa946f06b6fad5c0bb7b1b8f61076738aeb 100644 (file)
@@ -33,7 +33,7 @@ struct Thread;
 
 const int MAX_THREADS = 128;
 const int MAX_SPLITPOINTS_PER_THREAD = 8;
-const int MAX_SLAVES_PER_SPLITPOINT = 4;
+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.
@@ -85,7 +85,6 @@ struct SplitPoint {
   // Shared variable data
   Mutex mutex;
   std::bitset<MAX_THREADS> slavesMask;
-  int slavesCount;
   volatile bool allSlavesSearching;
   volatile uint64_t nodes;
   volatile Value alpha;