mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Clarify slavesMask usage
When a thread is allocated a bit is set in slavesMask. This bit corresponds to the thread's index field that, because it happens to be the position in the threads array, eventually it is equal to the loop index 'i'. But instead of relying on this 'coincidence', explicitly use the 'idx' field so to clarify slavesMask usage. Backported from c++11 branch. No functional change.
This commit is contained in:
@@ -153,7 +153,7 @@ public:
|
||||
bool slave_available(Thread* master) const;
|
||||
void wait_for_think_finished();
|
||||
void start_thinking(const Position&, const Search::LimitsType&,
|
||||
const std::vector<Move>&, Search::StateStackPtr&);
|
||||
const std::vector<Move>&, Search::StateStackPtr&);
|
||||
|
||||
template <bool Fake>
|
||||
Value split(Position& pos, Search::Stack* ss, Value alpha, Value beta, Value bestValue, Move* bestMove,
|
||||
|
||||
Reference in New Issue
Block a user