[glib: 20/30] gobject: Drop volatile qualifier from GObject.ref_count




commit 334f6953364680ddc6c0d3da13fda1d92bf5379d
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Nov 11 19:21:07 2020 +0000

    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

 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;
 };
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]