gst: log performance warning debug message if glib emulates atomic ops

This commit is contained in:
Tim-Philipp Müller 2012-08-24 23:14:57 +01:00
parent a30e637406
commit 985bc911a2

View file

@ -591,6 +591,11 @@ init_pre (GOptionContext * context, GOptionGroup * group, gpointer data,
}
#endif
#ifndef G_ATOMIC_LOCK_FREE
GST_CAT_WARNING (GST_CAT_PERFORMANCE, "GLib atomic operations are NOT "
"implemented using real hardware atomic operations!");
#endif
return TRUE;
}