blob: ae024a9af447658f0cf248bedf9a4a774229f8cb [file] [log] [blame]
Andrew Geissler95ac1b82021-03-31 14:34:31 -05001From 334f6953364680ddc6c0d3da13fda1d92bf5379d Mon Sep 17 00:00:00 2001
2From: Philip Withnall <pwithnall@endlessos.org>
3Date: Wed, 11 Nov 2020 19:21:07 +0000
4Subject: [PATCH 20/29] gobject: Drop volatile qualifier from GObject.ref_count
5
6This 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
8removal of the `volatile` qualifier.
9
10Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
11
12Helps: #600
13Upstream-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
18diff --git a/gobject/gobject.h b/gobject/gobject.h
19index 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--
322.30.1
33