RE: Does gtk have issues with STL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux