aboutsummaryrefslogtreecommitdiff
path: root/source/lldb-log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/lldb-log.cpp')
-rw-r--r--source/lldb-log.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lldb-log.cpp b/source/lldb-log.cpp
index 4311c1ad084f..463de137f623 100644
--- a/source/lldb-log.cpp
+++ b/source/lldb-log.cpp
@@ -11,6 +11,7 @@
// C Includes
// C++ Includes
+#include <atomic>
// Other libraries and framework includes
// Project includes
#include "lldb/Interpreter/Args.h"
@@ -27,7 +28,7 @@ using namespace lldb_private;
// that will construct the static g_lob_sp the first time this function is
// called.
-static bool g_log_enabled = false;
+static std::atomic<bool> g_log_enabled {false};
static Log * g_log = NULL;
static Log *
GetLog ()