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
1 changed files with 1 additions and 0 deletions
|
@ -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