Retire redundant sp->slavesCount field

It should be used slavesMask.count() instead.

Verified 100% equivalent when sp->allSlavesSearching:

dbg_hit_on(sp->allSlavesSearching, sp->slavesCount != sp->slavesMask.count());

No functional change.
This commit is contained in:
Marco Costalba
2015-02-19 10:27:24 +01:00
parent b9d4e6f7fd
commit 8d47caa16e
3 changed files with 7 additions and 11 deletions

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