mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
Notes:
github-actions[bot]
2025-04-30 15:13:48 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/b50d03f42ec Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4527 Reviewed-by: https://github.com/trflynn89 ✅
@@ -39,8 +39,8 @@ public:
|
||||
virtual int exec() override;
|
||||
virtual size_t pump(PumpMode) override;
|
||||
virtual void quit(int) override;
|
||||
|
||||
virtual void wake() override;
|
||||
virtual bool was_exit_requested() const override { return m_exit_requested; }
|
||||
|
||||
virtual void post_event(EventReceiver& receiver, NonnullOwnPtr<Event>&&) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user