Commit 13f8a912 authored by Max Kellermann's avatar Max Kellermann

event/Loop: simplify wake_event initializer

parent 51f110a9
...@@ -56,9 +56,6 @@ EventLoop::EventLoop( ...@@ -56,9 +56,6 @@ EventLoop::EventLoop(
alive(!_thread.IsNull()) alive(!_thread.IsNull())
#endif #endif
{ {
#ifdef HAVE_THREADED_EVENT_LOOP
wake_event.Open(wake_fd.GetSocket());
#endif
} }
EventLoop::~EventLoop() noexcept EventLoop::~EventLoop() noexcept
......
...@@ -63,7 +63,7 @@ class EventLoop final ...@@ -63,7 +63,7 @@ class EventLoop final
{ {
#ifdef HAVE_THREADED_EVENT_LOOP #ifdef HAVE_THREADED_EVENT_LOOP
WakeFD wake_fd; WakeFD wake_fd;
SocketEvent wake_event{*this, BIND_THIS_METHOD(OnSocketReady)}; SocketEvent wake_event{*this, BIND_THIS_METHOD(OnSocketReady), wake_fd.GetSocket()};
#endif #endif
struct TimerCompare { struct TimerCompare {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment