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;
|
Thread thread;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
~EventThread() {
|
||||||
|
Stop();
|
||||||
|
}
|
||||||
|
|
||||||
EventLoop &GetEventLoop() {
|
EventLoop &GetEventLoop() {
|
||||||
return event_loop;
|
return event_loop;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user