diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 0f85f70b7..14f803dfc 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -321,7 +321,7 @@ ExportTimeoutKernelTimespec(Event::Duration timeout, struct __kernel_timespec &b #endif inline bool -EventLoop::Wait(Event::Duration timeout) noexcept +EventLoop::Poll(Event::Duration timeout) noexcept { const auto poll_result = poll_backend.ReadEvents(ExportTimeoutMS(timeout)); @@ -434,11 +434,11 @@ EventLoop::Run() noexcept if (epoll_ready) { /* invoke epoll_wait() */ - epoll_ready = Wait(Event::Duration{0}); + epoll_ready = Poll(Event::Duration{0}); } } else #endif - Wait(timeout); + Poll(timeout); idle.splice(std::next(idle.begin()), next); diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 504e4a955..9e9748b42 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -326,7 +326,7 @@ private: * * @return true if one or more sockets have become ready */ - bool Wait(Event::Duration timeout) noexcept; + bool Poll(Event::Duration timeout) noexcept; #ifdef HAVE_THREADED_EVENT_LOOP void OnSocketReady(unsigned flags) noexcept;