1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

LibCore+LibWebView: Restore was_exit_requested to EventLoop

This method was removed in e015a43b51

However, it was not exactly *unused* as the commit message would say.
This method was the only thing that allowed spin_until to exit when
the event loop was cancelled. This happens normally when IPC connections
are closed, but also when the process is killed.

The logic to properly handle process exit from event loop spins needs to
actually notify the caller that their goal condition was not met though.
That will be handled in a later commit.
This commit is contained in:
Andrew Kaster 2025-04-29 15:41:18 -06:00 committed by Tim Flynn
parent 0cd5e99066
commit b50d03f42e
Notes: github-actions[bot] 2025-04-30 15:13:48 +00:00
9 changed files with 25 additions and 1 deletions

View file

@ -65,6 +65,11 @@ void EventLoop::quit(int code)
m_impl->quit(code);
}
bool EventLoop::was_exit_requested()
{
return m_impl->was_exit_requested();
}
struct EventLoopPusher {
public:
EventLoopPusher(EventLoop& event_loop)