diff --git a/src/event/DeferEvent.cxx b/src/event/DeferEvent.cxx index aae6c9396..63bf766ea 100644 --- a/src/event/DeferEvent.cxx +++ b/src/event/DeferEvent.cxx @@ -24,7 +24,7 @@ void DeferEvent::Schedule() noexcept { if (!IsPending()) - loop.AddDeferred(*this); + loop.AddDefer(*this); assert(IsPending()); } diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 9eb76c805..e67b811fe 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -187,7 +187,7 @@ EventLoop::HandleTimers() noexcept } void -EventLoop::AddDeferred(DeferEvent &d) noexcept +EventLoop::AddDefer(DeferEvent &d) noexcept { defer.push_back(d); again = true; diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 6d5dc1618..5032d18f1 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -209,7 +209,7 @@ public: /** * Schedule a call to DeferEvent::RunDeferred(). */ - void AddDeferred(DeferEvent &d) noexcept; + void AddDefer(DeferEvent &d) noexcept; void AddIdle(DeferEvent &e) noexcept; #ifdef HAVE_THREADED_EVENT_LOOP