From 985bc911a2ffb844e2d89014758d9d7458a5f7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 24 Aug 2012 23:14:57 +0100 Subject: [PATCH] gst: log performance warning debug message if glib emulates atomic ops --- gst/gst.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gst.c b/gst/gst.c index b19bac019d..793afaa0f7 100644 --- 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; }