[Gtk-sharp-list] Gtk# threading problem?
10 Oct 2002 12:13:29 +0100
On Thu, 2002-10-10 at 05:48, Vladimir Vukicevic wrote:
> I'm guessing he wants the equivalent of GDK_THREADS_ENTER and
> GDK_THREADS_LEAVE, but for all of gtk. i.e. have every gtk call, unless
> known safe, explicitly acquire a mutex. This would, however, be
> absolutely brutal for peformance.
Last time I looked at GDK_THREADS_ENTER / LEAVE it's performance
depended on whether the (global) gdk_threads_mutex was non NULL; of
course - that would need initialising at some stage; whether that can be
done idly / in a delayed fashion - I don't know - prolly difficult.
More difficult I think, is the necessity to do different locking
primitives for the same method call when called from different places -
[ inside / outside main-loops etc. ]. I think the Gtk+ design is quite
unhelpful there, but perhaps that got fixed - I know not.
email@example.com <><, Pseudo Engineer, itinerant idiot