event/Loop: rename AddDeferred() to AddDefer()
This commit is contained in:
parent
c58aaf545f
commit
e286702f4c
@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
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:
|
|||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
Loading…
Reference in New Issue
Block a user