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:
parent
0cd5e99066
commit
b50d03f42e
Notes:
github-actions[bot]
2025-04-30 15:13:48 +00:00
Author: https://github.com/ADKaster
Commit: b50d03f42e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4527
Reviewed-by: https://github.com/trflynn89 ✅
9 changed files with 25 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue