summaryrefslogtreecommitdiffstats
path: root/externals/microprofile
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-08-26 04:22:34 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-08-26 04:47:54 +0200
commit3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9 (patch)
tree7ac29da5e89af8241fa0ed46a02353f28ab44028 /externals/microprofile
parentMerge pull request #4572 from lioncash/xbyak (diff)
downloadyuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar.gz
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar.bz2
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar.lz
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar.xz
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.tar.zst
yuzu-3dcaaa18be1cf60bd0447f1dff6e4fa1ad175cf9.zip
Diffstat (limited to 'externals/microprofile')
-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);