Use pa_msleep() to get platform independence.
authorPierre Ossman <ossman@cendio.se>
Tue, 9 May 2006 08:38:37 +0000 (08:38 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 9 May 2006 08:38:37 +0000 (08:38 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@833 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/tests/thread-mainloop-test.c

index 24e18b3..1434deb 100644 (file)
@@ -63,7 +63,7 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
     pa_threaded_mainloop_unlock(m);
     
     fprintf(stderr, "waiting 5s (sleep)\n");
-    sleep(5);
+    pa_msleep(5000);
 
     fprintf(stderr, "shutting down\n");