Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 1 | From 334f6953364680ddc6c0d3da13fda1d92bf5379d Mon Sep 17 00:00:00 2001 |
| 2 | From: Philip Withnall <pwithnall@endlessos.org> |
| 3 | Date: Wed, 11 Nov 2020 19:21:07 +0000 |
| 4 | Subject: [PATCH 20/29] gobject: Drop volatile qualifier from GObject.ref_count |
| 5 | |
| 6 | This is an API break, but no third party code should be touching |
| 7 | `GObject.ref_count`, let alone in a way which would be changed by the |
| 8 | removal of the `volatile` qualifier. |
| 9 | |
| 10 | Signed-off-by: Philip Withnall <pwithnall@endlessos.org> |
| 11 | |
| 12 | Helps: #600 |
| 13 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719] |
| 14 | --- |
| 15 | gobject/gobject.h | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/gobject/gobject.h b/gobject/gobject.h |
| 19 | index 7f55e1976..a84c183f8 100644 |
| 20 | --- a/gobject/gobject.h |
| 21 | +++ b/gobject/gobject.h |
| 22 | @@ -247,7 +247,7 @@ struct _GObject |
| 23 | GTypeInstance g_type_instance; |
| 24 | |
| 25 | /*< private >*/ |
| 26 | - volatile guint ref_count; |
| 27 | + guint ref_count; /* (atomic) */ |
| 28 | GData *qdata; |
| 29 | }; |
| 30 | /** |
| 31 | -- |
| 32 | 2.30.1 |
| 33 | |