GAsyncQueue: Make ref_count a volatile gint
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 May 2011 02:02:13 +0000 (22:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 May 2011 02:02:13 +0000 (22:02 -0400)
glib/gasyncqueue.c

index faca3c5..d7f14ec 100644 (file)
@@ -95,7 +95,7 @@ struct _GAsyncQueue
   GQueue queue;
   GDestroyNotify item_free_func;
   guint waiting_threads;
-  gint32 ref_count;
+  volatile gint ref_count;
 };
 
 typedef struct {