X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=95d050f3bcaa66b624f159bc144ebfd4cf974f18;hp=3bd3c1a531c91db0b7e3668728915defdd48c606;hb=55948623e7b8ad1fc6624cd06733b16d295eecb8;hpb=fe2ed426614f729435338f0d7451f7b0d5fe30dd diff --git a/src/uci.cpp b/src/uci.cpp index 3bd3c1a5..95d050f3 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -56,7 +56,7 @@ namespace { void UCI::loop(const string& args) { - Position pos(StartFEN, false, Threads.main_thread()); // The root position + Position pos(StartFEN, false, Threads.main()); // The root position string token, cmd = args; do { @@ -77,7 +77,7 @@ void UCI::loop(const string& args) { if (token != "ponderhit" || Search::Signals.stopOnPonderhit) { Search::Signals.stop = true; - Threads.main_thread()->notify_one(); // Could be sleeping + Threads.main()->notify_one(); // Could be sleeping } else Search::Limits.ponder = false; @@ -146,7 +146,7 @@ namespace { else return; - pos.set(fen, Options["UCI_Chess960"], Threads.main_thread()); + pos.set(fen, Options["UCI_Chess960"], Threads.main()); SetupStates = Search::StateStackPtr(new std::stack()); // Parse move list (if any)