event/Thread: auto-stop in the destructor
This commit is contained in:
@@ -36,6 +36,10 @@ class EventThread final {
|
||||
Thread thread;
|
||||
|
||||
public:
|
||||
~EventThread() {
|
||||
Stop();
|
||||
}
|
||||
|
||||
EventLoop &GetEventLoop() {
|
||||
return event_loop;
|
||||
}
|
||||
|
Reference in New Issue
Block a user