]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Reformat and simplify previous patch
[stockfish] / src / thread.h
index edc4ee31833d38a0779f39233a8db280e9983ab4..66df55b5473d060f6e6db2f68ebec1ab25455ecd 100644 (file)
@@ -77,7 +77,7 @@ struct SplitPoint {
   // Shared data
   Mutex mutex;
   std::bitset<MAX_THREADS> slavesMask;
-  volatile bool allowLatejoin;
+  volatile bool allSlavesSearching;
   volatile uint64_t nodes;
   volatile Value alpha;
   volatile Value bestValue;
@@ -114,9 +114,8 @@ struct Thread : public ThreadBase {
 
   Thread();
   virtual void idle_loop();
-  bool attempt_to_latejoin();
   bool cutoff_occurred() const;
-  bool available_to(const Thread* master, bool latejoin) const;
+  bool available_to(const Thread* master) const;
 
   template <bool Fake>
   void split(Position& pos, const Search::Stack* ss, Value alpha, Value beta, Value* bestValue, Move* bestMove,