bugfix: passed ctx as std::ref in ParseGo | bench 2695095

This commit is contained in:
rektdie committed 2025-07-20 04:45:10 +02:00
1 parent 8d6314aef3
commit 64a85bf780
1 file changed
+2 -2
+2 -2
View File
@@ -85,10 +85,10 @@ static void ParseGo(Board &board, std::string &command, SEARCH::SearchContext* c
}
if (params.nodes) {
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::nodesMode>, std::ref(board), params, std::ref(ctx));
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::nodesMode>, std::ref(board), params, ctx);
worker.detach();
} else {
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::normal>, std::ref(board), params, std::ref(ctx));
auto worker = std::thread(SEARCH::SearchPosition<SEARCH::normal>, std::ref(board), params, ctx);
worker.detach();
}
}