Re: gobject thread safety



On Tue, 2005-07-12 at 12:11 -0400, Matthias Clasen wrote:
> On Fri, 2005-07-08 at 11:07 +0200, Andy Wingo wrote:
> > Hi Alex,
> > 
> > On Fri, 2005-07-08 at 09:54 +0200, Alexander Larsson wrote:
> > >
> > > It would also be extremely sweet to get the atomic refcount patches in:
> > > http://bugzilla.gnome.org/show_bug.cgi?id=166020
> > > 
> > > Whomever this is blocking on, please please try to move it forward.
> > 
> > It's blocking on Wim, who just now subscribed. He needs to update the
> > closure refcounting, and claims he'll get to it today.
> 
> Wim has put a new atomic refcounting patch in bugzilla. 
> I'll attach it here for your convenience, Tim. 

This patch is acceptable to me and includes all the notes made by Tim.
Adding/removing marshallers to closures from multiple threads
simultaneously might still produce unexpected behaviour. Is this
something we want to worry about right now? At first sight, it would
involve making the notifier arrays grow atomically in addition to using
CAS to swap the notifier functions into the arrays.

Wim


> 
> Matthias
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
-- 
Wim Taymans <wim fluendo com>




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