LibWeb+WebContent: Add EventLoopPlugin::quit() virtual

This allows you to customize breaking out of the system event loop.
This commit is contained in:
Andreas Kling 2022-10-08 10:54:52 +02:00
commit 829186af7d
Notes: sideshowbarker 2024-07-17 06:10:28 +09:00
4 changed files with 9 additions and 1 deletions

View file

@ -31,4 +31,9 @@ NonnullRefPtr<Timer> EventLoopPluginSerenity::create_timer()
return TimerSerenity::create();
}
void EventLoopPluginSerenity::quit()
{
Core::EventLoop::current().quit(0);
}
}