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