mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Add user-defined conversions to UCIOption
Greatly improves the usage. User defined conversions are a novelity for SF, another amazing C++ facility at work ! No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -112,11 +112,11 @@ bool Thread::is_available_to(int master) const {
|
||||
|
||||
void ThreadsManager::read_uci_options() {
|
||||
|
||||
maxThreadsPerSplitPoint = Options["Max Threads per Split Point"].value<int>();
|
||||
minimumSplitDepth = Options["Min Split Depth"].value<int>() * ONE_PLY;
|
||||
useSleepingThreads = Options["Use Sleeping Threads"].value<bool>();
|
||||
maxThreadsPerSplitPoint = Options["Max Threads per Split Point"];
|
||||
minimumSplitDepth = Options["Min Split Depth"] * ONE_PLY;
|
||||
useSleepingThreads = Options["Use Sleeping Threads"];
|
||||
|
||||
set_size(Options["Threads"].value<int>());
|
||||
set_size(Options["Threads"]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user