1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 05:35:06 +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:
Brandon Scott 2019-10-25 00:18:31 -05:00 committed by Andreas Kling
parent f256c55e8d
commit 5311f8fae1
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)