diff options
Diffstat (limited to 'src/event/Thread.cxx')
-rw-r--r-- | src/event/Thread.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/event/Thread.cxx b/src/event/Thread.cxx index e5c8ed0bc..5b7f47adf 100644 --- a/src/event/Thread.cxx +++ b/src/event/Thread.cxx @@ -26,7 +26,7 @@ EventThread::Start() { assert(!thread.IsDefined()); - thread.Start(ThreadFunc, this); + thread.Start(); } void @@ -39,17 +39,9 @@ EventThread::Stop() } void -EventThread::ThreadFunc() +EventThread::Run() { SetThreadName("io"); event_loop.Run(); -}; - -void -EventThread::ThreadFunc(void *arg) -{ - auto &et = *(EventThread *)arg; - - et.ThreadFunc(); -}; +} |