summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-08-31 16:13:07 +0000
committerPierre Ossman <ossman@cendio.se>2006-08-31 16:13:07 +0000
commit6e9706bcbcc0c5743d21ed48bd6e6485e4ee5203 (patch)
tree203fa0d78812507d55762cafefb7da78715e7292 /src/tests
parent0f6098bf6428b17bbff2b2d6f4e8ead0d43d7f3a (diff)
Also wrap yield functionality so that it can be platform independent.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1353 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/thread-test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/thread-test.c b/src/tests/thread-test.c
index a93ac1e4..120d2554 100644
--- a/src/tests/thread-test.c
+++ b/src/tests/thread-test.c
@@ -23,8 +23,6 @@
#include <config.h>
#endif
-#include <sched.h>
-
#include <pulsecore/thread.h>
#include <pulsecore/mutex.h>
#include <pulsecore/log.h>
@@ -73,7 +71,7 @@ static void thread_func(void *data) {
/* Spin! */
for (n = 0; n < k; n++)
- sched_yield();
+ pa_thread_yield();
pa_mutex_lock(mutex);
}