event/Thread: start the thread in the constructor

This is the proper fix for the e309941646 regression; see
commit abc8420697
This commit is contained in:
Max Kellermann
2025-01-30 10:53:20 +01:00
parent ae112fe077
commit b49cfe96f4
13 changed files with 4 additions and 22 deletions

View File

@@ -28,12 +28,6 @@ class GlobalInit {
EventThread io_thread;
public:
GlobalInit() {
io_thread.Start();
}
~GlobalInit() = default;
EventLoop &GetEventLoop() {
return io_thread.GetEventLoop();
}