From e286702f4c6dc491a56085a31ac1fda1fee9f6a6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 1 Dec 2020 17:26:39 +0100 Subject: [PATCH] event/Loop: rename AddDeferred() to AddDefer() --- src/event/DeferEvent.cxx | 2 +- src/event/Loop.cxx | 2 +- src/event/Loop.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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