kraken: don't use a thread for reading input
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bruno BELANYI 2022-03-25 10:47:14 +01:00
parent 7c2a25a6b0
commit f8558238bf
1 changed files with 8 additions and 12 deletions

View File

@ -43,7 +43,6 @@ int main(int argc, char** argv) {
}
});
auto reader = std::jthread([&]() {
for (std::string line; std::getline(std::cin, line);) {
auto const order = kraken::parse::parse_single_order(
kraken::csv::read_csv_line(line));
@ -51,9 +50,6 @@ int main(int argc, char** argv) {
// FIXME: busy wait
}
}
// EOF, bring process orders and bring
// EOF, process orders and bring down
writer.request_stop();
});
reader.join();
}