VERY experimental Nintendo Switch 2 emulator
C++
externals/microprofile: Fix data race in g_bUseLock
ReinUsesLisp56b58b8f8b9e
diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.hindex 6dae65a66f..85d5bd5dec 100644--- a/externals/microprofile/microprofile.h+++ b/externals/microprofile/microprofile.h@@ -1037,7 +1037,7 @@ static void MicroProfileCreateThreadLogKey()#elseMP_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);