gmain: Mark some ref_count variables as volatile

To make it more obvious they should exclusively be accessed with atomic
functions.

https://bugzilla.gnome.org/show_bug.cgi?id=737677
This commit is contained in:
Philip Withnall 2014-09-30 18:56:18 +01:00 committed by Philip Withnall
parent d73f8eec48
commit 9297a596d6

View File

@ -268,7 +268,7 @@ struct _GMainContext
guint owner_count;
GSList *waiters;
gint ref_count;
volatile gint ref_count;
GHashTable *sources; /* guint -> GSource */
@ -310,7 +310,7 @@ struct _GMainLoop
{
GMainContext *context;
gboolean is_running;
gint ref_count;
volatile gint ref_count;
};
struct _GTimeoutSource