Browse Source
Merge pull request #4587 from yuzu-emu/tsan-microprofiler
externals/microprofile: Fix data race in g_bUseLock
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|
|