micro-optimization: return early after setting guithread

No need to compare thread ids in this call.
This commit is contained in:
Andres G. Aragoneses 2012-09-21 21:35:51 +01:00
parent 5e77fdbb24
commit 1ba19069e9

View File

@ -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) &&