mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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: https://github.com/SerenityOS/serenity/commit/5311f8fae11 Pull-request: https://github.com/SerenityOS/serenity/pull/688
@ -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)
|
||||
|
@ -45,6 +45,7 @@ public:
|
||||
static void unregister_notifier(Badge<CNotifier>, CNotifier&);
|
||||
|
||||
void quit(int);
|
||||
void unquit();
|
||||
|
||||
void take_pending_events_from(CEventLoop& other)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user