Re: GObject thread safety



On Sat, 3 Nov 2001, Tim Janik wrote:

> On Sat, 3 Nov 2001, Alex Larsson wrote:

> > If I implement a class (even a class hierarchy), deriving from GObject, 
> > and I've taken my time to make the classes internally thread safe (say 
> > it's a process wide data object). I'm not using signals or object data, 
> > and all the class methods are thread safe. Now I can use this object in 
> > several threads. Except I can't memory manage it threadsafely, without 
> > having my own ref/unref wrappers.
> 
> i wonder what you want to gain from a data object that can't emit
> notification e.g. when it's data changes. without signals and object data,
> i'd be interested to hear why this is an object at all.
 
Yeah. It's sort of silly, but it could at least use the typesystem.

/ Alex





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