summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-01 03:20:08 +0200
committerGitHub <noreply@github.com>2020-09-01 03:20:08 +0200
commit2579a7199b3ee8ad4bf65993a948612b32c3a89c (patch)
treefa1e8ac00c89ba206f2a32486a26c49eea936488
parentMerge pull request #4461 from comex/thread-names (diff)
parentexternals/microprofile: Fix data race in g_bUseLock (diff)
downloadyuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar.gz
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar.bz2
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar.lz
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar.xz
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.tar.zst
yuzu-2579a7199b3ee8ad4bf65993a948612b32c3a89c.zip
-rw-r--r--externals/microprofile/microprofile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.h
index 6dae65a66..85d5bd5de 100644
--- a/externals/microprofile/microprofile.h
+++ b/externals/microprofile/microprofile.h
@@ -1037,7 +1037,7 @@ static void MicroProfileCreateThreadLogKey()
#else
MP_THREAD_LOCAL MicroProfileThreadLog* g_MicroProfileThreadLog = 0;
#endif
-static bool g_bUseLock = false; /// This is used because windows does not support using mutexes under dll init(which is where global initialization is handled)
+static std::atomic<bool> g_bUseLock{false}; /// This is used because windows does not support using mutexes under dll init(which is where global initialization is handled)
MICROPROFILE_DEFINE(g_MicroProfileFlip, "MicroProfile", "MicroProfileFlip", 0x3355ee);