mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Refactor ThreadsManager::set_size() functionality
Split the data allocation, now done (mostly once) in read_uci_options(), from the wake up and sleeping of the slave threads upon entering/exiting the search. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -108,7 +108,8 @@ public:
|
||||
int min_split_depth() const { return minimumSplitDepth; }
|
||||
int size() const { return activeThreads; }
|
||||
|
||||
void set_size(int cnt);
|
||||
void wake_up();
|
||||
void sleep();
|
||||
void read_uci_options();
|
||||
bool available_slave_exists(int master) const;
|
||||
void set_timer(int msec);
|
||||
|
||||
Reference in New Issue
Block a user