Re: Atomic Reference Counts in GObject



On Tuesday 26 April 2005 22:28, Jonas Bonn wrote:

> I had a look at the code for g_object_unref to see when my weak_ref
> notifiers were going to be called, and I was quite surprised to see
> that GObject does not use the atomic functions for reference counting.
>  Is there any technical reason for not using the atomic functions
> here?

The g_atomic_* functions were only added in GLib-2.4 

There's a bug open about using g_atomic_* stuff for GObjects though:

 http://bugzilla.gnome.org/show_bug.cgi?id=166020

Cheers
 -Tim



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