RE: Does gtk have issues with STL?
- From: "Vallone, Anthony" <anthony vallone lmco com>
- To: Chris Vine <chris cvine freeserve co uk>, Lindley M French <lfrench1 gmu edu>
- Cc: gtk-list gnome org
- Subject: RE: Does gtk have issues with STL?
- Date: Tue, 12 Feb 2008 16:19:58 -0500
> 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]