Volatile not necessary after all
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 May 2011 02:33:37 +0000 (22:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 May 2011 02:33:37 +0000 (22:33 -0400)
I was temporarily confused.

glib/garray.c
glib/gasyncqueue.c
glib/ghash.c
glib/gtree.c

index 7c90f63..d498d23 100644 (file)
@@ -107,7 +107,7 @@ struct _GRealArray
   guint   elt_size;
   guint   zero_terminated : 1;
   guint   clear : 1;
-  volatile gint ref_count;
+  gint    ref_count;
 };
 
 /**
@@ -759,7 +759,7 @@ struct _GRealPtrArray
   gpointer     *pdata;
   guint         len;
   guint         alloc;
-  volatile gint ref_count;
+  gint          ref_count;
   GDestroyNotify element_free_func;
 };
 
index d7f14ec..02284ac 100644 (file)
@@ -95,7 +95,7 @@ struct _GAsyncQueue
   GQueue queue;
   GDestroyNotify item_free_func;
   guint waiting_threads;
-  volatile gint ref_count;
+  gint ref_count;
 };
 
 typedef struct {
index 54db82e..f381eaa 100644 (file)
@@ -220,7 +220,7 @@ struct _GHashTable
 
   GHashFunc        hash_func;
   GEqualFunc       key_equal_func;
-  volatile gint    ref_count;
+  gint             ref_count;
 #ifndef G_DISABLE_ASSERT
   /*
    * Tracks the structure of the hash table, not its contents: is only
index 0c41ff9..7f016d7 100644 (file)
@@ -85,7 +85,7 @@ struct _GTree
   GDestroyNotify    value_destroy_func;
   gpointer          key_compare_data;
   guint             nnodes;
-  volatile gint     ref_count;
+  gint              ref_count;
 };
 
 struct _GTreeNode