From 55c306796bbc807b488e094d1cab4d3a107dad38 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 4 Aug 2014 16:26:17 +0200 Subject: [PATCH] Add Application::Exit() refs #6682 --- lib/base/application.cpp | 5 +++++ lib/base/application.hpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/base/application.cpp b/lib/base/application.cpp index 14ea9f6ff..1bcd86a82 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -112,6 +112,11 @@ Application::~Application(void) m_Instance = NULL; } +void Application::Exit(int code) +{ + _exit(code); +} + void Application::InitializeBase(void) { #ifndef _WIN32 diff --git a/lib/base/application.hpp b/lib/base/application.hpp index d6be2b1b5..a97208b45 100644 --- a/lib/base/application.hpp +++ b/lib/base/application.hpp @@ -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. */