Make sure we do not use pthread_yield() on platforms that do not have them.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1045 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-06-20 14:26:52 +00:00
parent 3b2835843e
commit 1342999b51

View file

@ -148,7 +148,7 @@ int main(int argc, char *argv[]) {
tv = now;
while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
#ifdef HAVE_PTHREAD
#ifdef HAVE_PTHREAD_YIELD
pthread_yield();
#elif defined(OS_IS_WIN32)
Sleep(0);