mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36: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:
@@ -73,7 +73,7 @@ OptionsMap::OptionsMap() {
|
||||
o["Cowardice"] = UCIOption(100, 0, 200, on_eval);
|
||||
o["Min Split Depth"] = UCIOption(msd, 4, 7, on_threads);
|
||||
o["Max Threads per Split Point"] = UCIOption(5, 4, 8, on_threads);
|
||||
o["Threads"] = UCIOption(cpus, 1, MAX_THREADS);
|
||||
o["Threads"] = UCIOption(cpus, 1, MAX_THREADS, on_threads);
|
||||
o["Use Sleeping Threads"] = UCIOption(true, on_threads);
|
||||
o["Hash"] = UCIOption(32, 4, 8192, on_hash_size);
|
||||
o["Clear Hash"] = UCIOption(on_clear_hash);
|
||||
|
||||
Reference in New Issue
Block a user