Reformat and simplify previous patch

No functional change.
This commit is contained in:
Marco Costalba
2014-05-07 08:47:18 +02:00
parent f6e98a924a
commit 7e3dba4f4c
3 changed files with 39 additions and 50 deletions

View 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,