mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-19 12:49:49 +02:00
Merge pull request #1 from knocte/do_not_report_gtk_init_itself
do not report yet violations if guithread is not set yet
This commit is contained in:
commit
cf9c865ecc
@ -63,6 +63,9 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method)
|
|||||||
guithread = current_thread_id;
|
guithread = current_thread_id;
|
||||||
printf ("*** GUI THREAD INITIALIZED: %u\n", guithread);
|
printf ("*** GUI THREAD INITIALIZED: %u\n", guithread);
|
||||||
}
|
}
|
||||||
|
if (!guithread_set) {
|
||||||
|
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) &&
|
||||||
!(strcmp (klass_name, "Application")==0 && strcmp (method_name, "Invoke")==0) &&
|
!(strcmp (klass_name, "Application")==0 && strcmp (method_name, "Invoke")==0) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user