mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Make interpol-test build on Win32 and non-pthread systems.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1043 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3ff68bd7a5
commit
6ca46f4d7a
1 changed files with 9 additions and 0 deletions
|
|
@ -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 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue