mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Rename available_to()
Change this API to be more natural and simple. Inspired by a patch by Joona. No functional change.
This commit is contained in:
@@ -114,7 +114,7 @@ struct Thread : public ThreadBase {
|
||||
Thread();
|
||||
virtual void idle_loop();
|
||||
bool cutoff_occurred() const;
|
||||
bool available_to(const Thread* master) const;
|
||||
bool can_join(const SplitPoint* sp) const;
|
||||
|
||||
void split(Position& pos, Search::Stack* ss, Value alpha, Value beta, Value* bestValue, Move* bestMove,
|
||||
Depth depth, int moveCount, MovePicker* movePicker, int nodeType, bool cutNode);
|
||||
@@ -161,7 +161,7 @@ struct ThreadPool : public std::vector<Thread*> {
|
||||
|
||||
MainThread* main() { return static_cast<MainThread*>(at(0)); }
|
||||
void read_uci_options();
|
||||
Thread* available_slave(const Thread* master) const;
|
||||
Thread* available_slave(const SplitPoint* sp) const;
|
||||
void wait_for_think_finished();
|
||||
void start_thinking(const Position&, const Search::LimitsType&, Search::StateStackPtr&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user