[polypaudio-commits] r1043 - /trunk/src/tests/interpol-test.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Jun 20 06:49:31 PDT 2006
Author: ossman
Date: Tue Jun 20 15:49:30 2006
New Revision: 1043
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1043&root=pulseaudio&view=rev
Log:
Make interpol-test build on Win32 and non-pthread systems.
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=1043&root=pulseaudio&r1=1042&r2=1043&view=diff
==============================================================================
--- trunk/src/tests/interpol-test.c (original)
+++ trunk/src/tests/interpol-test.c Tue Jun 20 15:49:30 2006
@@ -32,7 +32,10 @@
#include <stdlib.h>
#include <getopt.h>
#include <math.h>
+
+#ifdef HAVE_PTHREAD
#include <pthread.h>
+#endif
#include <pulse/pulseaudio.h>
#include <pulse/mainloop.h>
@@ -145,7 +148,13 @@
tv = now;
while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
+#ifdef HAVE_PTHREAD
pthread_yield();
+#elif defined(OS_IS_WIN32)
+ Sleep(0);
+#else
+ ;
+#endif
}
if (m)
More information about the pulseaudio-commits
mailing list