event/Loop: rename AddDeferred() to AddDefer()
This commit is contained in:
parent
c58aaf545f
commit
e286702f4c
@ -24,7 +24,7 @@ void
|
||||
DeferEvent::Schedule() noexcept
|
||||
{
|
||||
if (!IsPending())
|
||||
loop.AddDeferred(*this);
|
||||
loop.AddDefer(*this);
|
||||
|
||||
assert(IsPending());
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ EventLoop::HandleTimers() noexcept
|
||||
}
|
||||
|
||||
void
|
||||
EventLoop::AddDeferred(DeferEvent &d) noexcept
|
||||
EventLoop::AddDefer(DeferEvent &d) noexcept
|
||||
{
|
||||
defer.push_back(d);
|
||||
again = true;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user