Commit e286702f authored by Max Kellermann's avatar Max Kellermann

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

parent c58aaf54
...@@ -24,7 +24,7 @@ void ...@@ -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());
} }
......
...@@ -187,7 +187,7 @@ EventLoop::HandleTimers() noexcept ...@@ -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;
......
...@@ -209,7 +209,7 @@ public: ...@@ -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
......
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