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:
Brandon Scott 2019-10-25 00:18:31 -05:00 committed by Andreas Kling
parent f256c55e8d
commit 5311f8fae1
Notes: sideshowbarker 2024-07-19 11:32:55 +09:00
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -45,6 +45,7 @@ public:
static void unregister_notifier(Badge<CNotifier>, CNotifier&);
void quit(int);
void unquit();
void take_pending_events_from(CEventLoop& other)
{