mirror of
				https://github.com/Ryujinx/GtkSharp.git
				synced 2025-11-04 13:04:53 +00:00 
			
		
		
		
	micro-optimization: return early after setting guithread
No need to compare thread ids in this call.
This commit is contained in:
		
							parent
							
								
									5e77fdbb24
								
							
						
					
					
						commit
						1ba19069e9
					
				| 
						 | 
				
			
			@ -62,6 +62,7 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method)
 | 
			
		|||
			guithread_set = TRUE;
 | 
			
		||||
			guithread = current_thread_id;
 | 
			
		||||
			printf ("*** GUI THREAD INITIALIZED: %u\n", guithread); 
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		if (current_thread_id != guithread &&
 | 
			
		||||
			!(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue