mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
turned all modifications to the first 32 integer bits in a closure into
Mon Aug 1 23:00:42 2005 Tim Janik <timj@imendio.com> * gclosure.c: turned all modifications to the first 32 integer bits in a closure into atomic accesses. wrapped write accesses into special macros to keep the atomic modification logic in a single place. comment cleanups. * gclosure.h: made all atomicly accessed closure fields volatile. * gobject.h: made ref_count field volatile.
This commit is contained in:
@@ -62,11 +62,11 @@ typedef void (*GWeakNotify) (gpointer data,
|
||||
GObject *where_the_object_was);
|
||||
struct _GObject
|
||||
{
|
||||
GTypeInstance g_type_instance;
|
||||
GTypeInstance g_type_instance;
|
||||
|
||||
/*< private >*/
|
||||
guint ref_count;
|
||||
GData *qdata;
|
||||
volatile guint ref_count;
|
||||
GData *qdata;
|
||||
};
|
||||
struct _GObjectClass
|
||||
{
|
||||
|
Reference in New Issue
Block a user