Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / tests / benchmarks / gstclockstress.c
index ed89840..47aa5cc 100644 (file)
@@ -35,7 +35,7 @@ run_test (void *user_data)
 
   while (running) {
     gst_clock_get_time (sysclock);
-    prev = G_ATOMIC_INT_ADD (&count, 1);
+    prev = g_atomic_int_add (&count, 1);
     if (prev == G_MAXINT)
       g_warning ("overflow");
   }
@@ -70,12 +70,9 @@ main (gint argc, gchar * argv[])
   for (t = 0; t < num_threads; t++) {
     GError *error = NULL;
 
-#if !GLIB_CHECK_VERSION (2, 31, 0)
-    threads[t] = g_thread_create (run_test, sysclock, TRUE, &error);
-#else
     threads[t] = g_thread_try_new ("clockstresstest", run_test,
         sysclock, &error);
-#endif
+
     if (error) {
       printf ("ERROR: g_thread_create() %s\n", error->message);
       exit (-1);