mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-20 01:52:53 +00:00
LibCore: Added unquit() method to CEventLoop.
Added an unquit() method to CEventLoop allowing you to cancel a pending exit request.
This commit is contained in:
parent
f256c55e8d
commit
5311f8fae1
Notes:
sideshowbarker
2024-07-19 11:32:55 +09:00
Author: https://github.com/xeons
Commit: 5311f8fae1
Pull-request: https://github.com/SerenityOS/serenity/pull/688
2 changed files with 8 additions and 0 deletions
|
@ -186,6 +186,13 @@ void CEventLoop::quit(int code)
|
|||
m_exit_code = code;
|
||||
}
|
||||
|
||||
void CEventLoop::unquit()
|
||||
{
|
||||
dbg() << "CEventLoop::unquit()";
|
||||
m_exit_requested = false;
|
||||
m_exit_code = 0;
|
||||
}
|
||||
|
||||
struct CEventLoopPusher {
|
||||
public:
|
||||
CEventLoopPusher(CEventLoop& event_loop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue