X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=b7f72d9d4c8cb655df23ef9822f40724502e9d7b;hp=86fe629a84f69708fd6057c9897790fbdc816063;hb=c2600a73cfcde2958351bf7fd4dc7296b137223b;hpb=c2c185423b13b0227c86009c6006e48e8d258896 diff --git a/src/uci.cpp b/src/uci.cpp index 86fe629a..b7f72d9d 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -28,6 +28,7 @@ #include "move.h" #include "position.h" #include "search.h" +#include "thread.h" #include "ucioption.h" using namespace std; @@ -60,8 +61,10 @@ void uci_loop() { string cmd, token; bool quit = false; - while (!quit && getline(cin, cmd)) + while (!quit) { + Threads.getline(cmd); + istringstream is(cmd); is >> skipws >> token;