bugfix: passed ctx as std::ref in ParseGo | bench 2695095
This commit is contained in:
1 parent
8d6314aef3
commit
64a85bf780
1 file changed
+2
-2
+2
-2
@@ -85,10 +85,10 @@ static void ParseGo(Board &board, std::string &command, SEARCH::SearchContext* c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (params.nodes) {
|
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();
|
worker.detach();
|
||||||
} else {
|
} 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();
|
worker.detach();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user