mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 02:34:11 +01:00 
			
		
		
		
	Merge pull request #4587 from yuzu-emu/tsan-microprofiler
externals/microprofile: Fix data race in g_bUseLock
This commit is contained in:
		
						commit
						2579a7199b
					
				
							
								
								
									
										2
									
								
								externals/microprofile/microprofile.h
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								externals/microprofile/microprofile.h
									
									
									
									
										vendored
									
									
								
							| @ -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); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user