mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:35:27 +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_set = TRUE;
|
||||||
guithread = current_thread_id;
|
guithread = current_thread_id;
|
||||||
printf ("*** GUI THREAD INITIALIZED: %u\n", guithread);
|
printf ("*** GUI THREAD INITIALIZED: %u\n", guithread);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (current_thread_id != guithread &&
|
if (current_thread_id != guithread &&
|
||||||
!(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) &&
|
!(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) &&
|
||||||
|
|
Loading…
Reference in a new issue