Commit 9297a596 authored by Philip Withnall's avatar Philip Withnall Committed by Philip Withnall
Browse files

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
parent d73f8eec
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment