1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibCore: Move deferred_invoke() implementation out of line

This commit is contained in:
Andreas Kling 2023-04-23 21:19:37 +02:00
parent 411d36719e
commit 029f5b0dad
2 changed files with 13 additions and 10 deletions

View file

@ -847,4 +847,15 @@ void EventLoop::wake()
}
}
void EventLoop::deferred_invoke(Function<void()> invokee)
{
auto context = DeferredInvocationContext::construct();
post_event(context, make<Core::DeferredInvocationEvent>(context, move(invokee)));
}
void deferred_invoke(Function<void()> invokee)
{
EventLoop::current().deferred_invoke(move(invokee));
}
}