mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 19:46:55 +08:00
Allow execution of tasks on the global thread pool.
This commit is contained in:
@@ -345,6 +345,12 @@ void UCI::loop(int argc, char* argv[]) {
|
||||
// Command to call qsearch(),search() directly for testing
|
||||
else if (token == "qsearch") qsearch_cmd(pos);
|
||||
else if (token == "search") search_cmd(pos, is);
|
||||
else if (token == "tasktest")
|
||||
{
|
||||
Threads.execute_parallel([](auto& th) {
|
||||
std::cout << th.thread_idx() << '\n';
|
||||
});
|
||||
}
|
||||
|
||||
// test command
|
||||
else if (token == "test") test_cmd(pos, is);
|
||||
|
||||
Reference in New Issue
Block a user