| From 334f6953364680ddc6c0d3da13fda1d92bf5379d Mon Sep 17 00:00:00 2001 |
| From: Philip Withnall <pwithnall@endlessos.org> |
| Date: Wed, 11 Nov 2020 19:21:07 +0000 |
| Subject: [PATCH 20/29] 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 |
| Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719] |
| --- |
| gobject/gobject.h | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| 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; |
| }; |
| /** |
| -- |
| 2.30.1 |
| |