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 b19bac019d99e0ff30ac1588959cf55ee544d98e..793afaa0f7f333ab28ad7415b3cf70963a3be610 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;
 }