RE: Does gtk have issues with STL?



> 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?


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