> You do not need to call gdk_thread_init() 
> if you are only invoking GDK/GTK+ functions by message passing via 
> g_idle_add() (that is, if you are not calling
gdk_threads_enter()/leave()).

That's interesting.  g_idle_add() is thread safe without telling it to
use mutex locking? Based on the docs, I've always called g_thread_init
assuming I had to.  This may have a complicated answer, but how does it
safely manage being called by multiple threads given that it is probably
accessing data shared by the threads?

Also, will I get any performance improvement if I remove it?
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to