aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/zencore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/zencore.cpp')
-rw-r--r--src/zencore/zencore.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zencore/zencore.cpp b/src/zencore/zencore.cpp
index eed903f54..d0acac608 100644
--- a/src/zencore/zencore.cpp
+++ b/src/zencore/zencore.cpp
@@ -37,6 +37,8 @@
#include <fmt/format.h>
+#include <atomic>
+
namespace zen::assert {
void
@@ -104,8 +106,8 @@ IsInteractiveSession()
//////////////////////////////////////////////////////////////////////////
-static int s_ApplicationExitCode = 0;
-static bool s_ApplicationExitRequested;
+static std::atomic_int s_ApplicationExitCode{0};
+static std::atomic_bool s_ApplicationExitRequested{false};
bool
IsApplicationExitRequested()