From 70ef3d6602656cd2e200bc6cec839fff5281195f Mon Sep 17 00:00:00 2001 From: 9000h <3009073+9000h@users.noreply.github.com> Date: Mon, 28 Oct 2019 12:34:46 +0100 Subject: [PATCH] Switch to posix compaatible sched_yield Use sched_yield() instead of pthread_yield() --- audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio.c b/audio.c index 0a16054..2b1683c 100644 --- a/audio.c +++ b/audio.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #define _(str) gettext(str) ///< gettext shortcut @@ -1584,7 +1585,7 @@ static int OssThread(void) if (err < 0) { // underrun error return -1; } - pthread_yield(); + sched_yield(); usleep(OssFragmentTime * 1000); // let fill/empty the buffers return 0; }