event/Loop: rename AddDeferred() to AddDefer()

This commit is contained in:
Max Kellermann 2020-12-01 17:26:39 +01:00
parent c58aaf545f
commit e286702f4c
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ void
DeferEvent::Schedule() noexcept DeferEvent::Schedule() noexcept
{ {
if (!IsPending()) if (!IsPending())
loop.AddDeferred(*this); loop.AddDefer(*this);
assert(IsPending()); assert(IsPending());
} }

View File

@ -187,7 +187,7 @@ EventLoop::HandleTimers() noexcept
} }
void void
EventLoop::AddDeferred(DeferEvent &d) noexcept EventLoop::AddDefer(DeferEvent &d) noexcept
{ {
defer.push_back(d); defer.push_back(d);
again = true; again = true;

View File

@ -209,7 +209,7 @@ public:
/** /**
* Schedule a call to DeferEvent::RunDeferred(). * Schedule a call to DeferEvent::RunDeferred().
*/ */
void AddDeferred(DeferEvent &d) noexcept; void AddDefer(DeferEvent &d) noexcept;
void AddIdle(DeferEvent &e) noexcept; void AddIdle(DeferEvent &e) noexcept;
#ifdef HAVE_THREADED_EVENT_LOOP #ifdef HAVE_THREADED_EVENT_LOOP