No multithreading for now

This commit is contained in:
Joris van Rantwijk 2024-09-29 22:15:58 +02:00
parent 055c084c60
commit ddbeb20633
1 changed files with 5 additions and 2 deletions

View File

@ -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();
}