[pulseaudio-commits] r1372 - /trunk/src/tests/interpol-test.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Sep 4 15:38:42 PDT 2006


Author: lennart
Date: Tue Sep  5 00:38:41 2006
New Revision: 1372

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1372&root=pulseaudio&view=rev
Log:
remove yet another occurence of pthread_yield() by pa_thread_yield()

Modified:
    trunk/src/tests/interpol-test.c

Modified: trunk/src/tests/interpol-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/interpol-test.c?rev=1372&root=pulseaudio&r1=1371&r2=1372&view=diff
==============================================================================
--- trunk/src/tests/interpol-test.c (original)
+++ trunk/src/tests/interpol-test.c Tue Sep  5 00:38:41 2006
@@ -33,16 +33,10 @@
 #include <getopt.h>
 #include <math.h>
 
-#ifdef HAVE_PTHREAD
-#include <pthread.h>
-#endif
-
-#ifdef HAVE_WINDOWS_H
-#include <windows.h>
-#endif
-
 #include <pulse/pulseaudio.h>
 #include <pulse/mainloop.h>
+
+#include <pulsecore/thread.h>
 
 static pa_context *context = NULL;
 static pa_stream *stream = NULL;
@@ -152,13 +146,7 @@
 
         tv = now;
         while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
-#ifdef HAVE_PTHREAD_YIELD
-            pthread_yield();
-#elif defined(OS_IS_WIN32)
-            Sleep(0);
-#else
-            ;
-#endif
+            pa_thread_yield();
     }
 
     if (m)




More information about the pulseaudio-commits mailing list