From f60aec8607aa4ef70b4653d201c854b00a538951 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 21 Mar 2024 13:03:41 +0100 Subject: harden attach sponsor process (#14) - Improvement: Delay exiting due to no sponsor processes by one second to handle race conditions - Improvement: Safer IsProcessRunning check - Improvement: make sure we can RequestApplicationExit safely from any thread --- src/zencore/include/zencore/zencore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zencore/include') diff --git a/src/zencore/include/zencore/zencore.h b/src/zencore/include/zencore/zencore.h index e8c734ba9..1a9060e29 100644 --- a/src/zencore/include/zencore/zencore.h +++ b/src/zencore/include/zencore/zencore.h @@ -84,7 +84,7 @@ protected: namespace zen { ZENCORE_API bool IsApplicationExitRequested(); -ZENCORE_API void RequestApplicationExit(int ExitCode); +ZENCORE_API bool RequestApplicationExit(int ExitCode); ZENCORE_API int ApplicationExitCode(); ZENCORE_API bool IsDebuggerPresent(); ZENCORE_API void SetIsInteractiveSession(bool Value); -- cgit v1.2.3