gst: log performance warning debug message if glib emulates atomic ops
authorTim-Philipp Müller <tim@centricular.net>
Fri, 24 Aug 2012 22:14:57 +0000 (23:14 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 24 Aug 2012 22:14:57 +0000 (23:14 +0100)
gst/gst.c

index b19bac0..793afaa 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -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;
 }