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
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

@ -78,6 +78,8 @@ public:
void quit(int);
bool was_exit_requested();
// The registration functions act upon the current loop of the current thread.
static intptr_t register_timer(EventReceiver&, int milliseconds, bool should_reload, TimerShouldFireWhenNotVisible);
static void unregister_timer(intptr_t timer_id);