summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2020-11-11 19:21:07 +0000
committerPhilip Withnall <pwithnall@endlessos.org>2020-11-20 14:40:19 +0000
commit334f6953364680ddc6c0d3da13fda1d92bf5379d (patch)
tree2c5a1ac32f68dbddf6c6ddac15b6cd89282c417e
parent46bae4f18dfec8fedda82648091752d270b2dff8 (diff)
downloadglib-334f6953364680ddc6c0d3da13fda1d92bf5379d.tar.gz
gobject: Drop volatile qualifier from GObject.ref_count
This is an API break, but no third party code should be touching `GObject.ref_count`, let alone in a way which would be changed by the removal of the `volatile` qualifier. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
-rw-r--r--gobject/gobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gobject.h b/gobject/gobject.h
index 7f55e1976..a84c183f8 100644
--- a/gobject/gobject.h
+++ b/gobject/gobject.h
@@ -247,7 +247,7 @@ struct _GObject
GTypeInstance g_type_instance;
/*< private >*/
- volatile guint ref_count;
+ guint ref_count; /* (atomic) */
GData *qdata;
};
/**