mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Move wait_for_stop_or_ponderhit() under Thread
This method belongs to Thread, not to ThreadsManager. Reshuffle stuff in thread.cpp while there. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -54,7 +54,7 @@ struct SplitPoint {
|
||||
volatile Value alpha;
|
||||
volatile Value bestValue;
|
||||
volatile int moveCount;
|
||||
volatile bool is_betaCutoff;
|
||||
volatile bool cutoff;
|
||||
};
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ struct Thread {
|
||||
void idle_loop(SplitPoint* sp_master);
|
||||
void main_loop();
|
||||
void timer_loop();
|
||||
void wait_for_stop_or_ponderhit();
|
||||
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
MaterialInfoTable materialTable;
|
||||
@@ -110,7 +111,6 @@ public:
|
||||
void read_uci_options();
|
||||
bool available_slave_exists(int master) const;
|
||||
void set_timer(int msec);
|
||||
void wait_for_stop_or_ponderhit();
|
||||
void stop_thinking();
|
||||
void start_thinking(const Position& pos, const Search::LimitsType& limits,
|
||||
const std::set<Move>& = std::set<Move>(), bool async = false);
|
||||
|
||||
Reference in New Issue
Block a user