mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.
This commit is contained in:
		
							parent
							
								
									53ba65db43
								
							
						
					
					
						commit
						0aa44e238d
					
				
					 7 changed files with 21 additions and 9 deletions
				
			
		|  | @ -310,7 +310,8 @@ int __cdecl main(int argc, char* argv[]) | |||
| { | ||||
|     std::shared_ptr<Log::Logger> logger = Log::InitGlobalLogger(); | ||||
|     Log::Filter log_filter(Log::Level::Info); | ||||
|     std::thread logging_thread(Log::TextLoggingLoop, logger, &log_filter); | ||||
|     Log::SetFilter(&log_filter); | ||||
|     std::thread logging_thread(Log::TextLoggingLoop, logger); | ||||
|     SCOPE_EXIT({ | ||||
|         logger->Close(); | ||||
|         logging_thread.join(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue