Re: GObject thread safety



> > I do think many people will assume that g_object_ref/unref() can be used 
> > between threads...
> 
> i'd really say then they make the wrong assumptions and didn't get how
> to do threaded programming in glib. what point is there in just reffing
> objects in threads? at some point they're going to use it and then they
> need some global object-entity lock anyways.

No, if you have thread-safe ref/unref you can use per-object (or even
finer-grained) locks.

-- Dan



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