X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=edc4ee31833d38a0779f39233a8db280e9983ab4;hp=44aa68835f892a56113f58de9a2a4f1d6ba6d2bd;hb=f6e98a924af233a5e69f3494168cf5d80168c705;hpb=8f6a494ad70eccf744c1b03d23313fe06d131ded diff --git a/src/thread.h b/src/thread.h index 44aa6883..edc4ee31 100644 --- a/src/thread.h +++ b/src/thread.h @@ -77,6 +77,7 @@ struct SplitPoint { // Shared data Mutex mutex; std::bitset slavesMask; + volatile bool allowLatejoin; volatile uint64_t nodes; volatile Value alpha; volatile Value bestValue; @@ -113,8 +114,9 @@ struct Thread : public ThreadBase { Thread(); virtual void idle_loop(); + bool attempt_to_latejoin(); bool cutoff_occurred() const; - bool available_to(const Thread* master) const; + bool available_to(const Thread* master, bool latejoin) const; template void split(Position& pos, const Search::Stack* ss, Value alpha, Value beta, Value* bestValue, Move* bestMove,