diff --git a/sw/src/userspace/remotectl.cpp b/sw/src/userspace/remotectl.cpp index bd763b1..b0b0c7f 100644 --- a/sw/src/userspace/remotectl.cpp +++ b/sw/src/userspace/remotectl.cpp @@ -1832,11 +1832,14 @@ int run_remote_control_server( acq_server.start_server(); timetagger_server.start_server(); + // We could start a few background threads, each calling io.run(). + // It may improve performance a little bit. + // However, if there are synchronization bugs, it would cause weird issues + // that are difficult to track down. So let's keep just one thread for now. + log(LOG_INFO, "Running, press Ctrl-C to stop"); io.run(); - // TODO -- multi-threading - return command_handler.exit_status(); }