// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #include "DeferEvent.hxx" #include "Loop.hxx" void DeferEvent::Schedule() noexcept { if (!IsPending()) loop.AddDefer(*this); assert(IsPending()); } void DeferEvent::ScheduleIdle() noexcept { if (!IsPending()) loop.AddIdle(*this); assert(IsPending()); }