Merge pull request #2 from knocte/micro_optimization

micro-optimization: return early after setting guithread
This commit is contained in:
Lluis Sanchez 2012-09-21 23:48:44 -07:00
commit 2808b49059

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 (!guithread_set) {
return;