[glib] GTree: Declare ref_count as volatile



commit 53f93aacf3c091322d2674224e75e0d5454dc370
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 28 22:03:05 2011 -0400

    GTree: Declare ref_count as volatile

 glib/gtree.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gtree.c b/glib/gtree.c
index 4aa5e5c..0c41ff9 100644
--- a/glib/gtree.c
+++ b/glib/gtree.c
@@ -85,7 +85,7 @@ struct _GTree
   GDestroyNotify    value_destroy_func;
   gpointer          key_compare_data;
   guint             nnodes;
-  gint              ref_count;
+  volatile gint     ref_count;
 };
 
 struct _GTreeNode
@@ -95,7 +95,7 @@ struct _GTreeNode
   GTreeNode *left;        /* left subtree */
   GTreeNode *right;       /* right subtree */
   gint8      balance;     /* height (left) - height (right) */
-  guint8     left_child;  
+  guint8     left_child;
   guint8     right_child;
 };
 



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