Add Application::Exit()

refs #6682
This commit is contained in:
Michael Friedrich 2014-08-04 16:26:17 +02:00
parent 7b8dc1d97e
commit 55c306796b
2 changed files with 8 additions and 1 deletions

View File

@ -112,6 +112,11 @@ Application::~Application(void)
m_Instance = NULL;
}
void Application::Exit(int code)
{
_exit(code);
}
void Application::InitializeBase(void)
{
#ifndef _WIN32

View File

@ -46,6 +46,8 @@ public:
static Application::Ptr GetInstance(void);
static void Exit(int code);
int Run(void);
/**
@ -128,7 +130,7 @@ protected:
pid_t StartReloadProcess(void);
virtual void OnShutdown(void);
private:
static Application *m_Instance; /**< The application instance. */