From: Carlo Landmeter Date: Thu, 12 May 2016 22:24:14 +0000 (+0200) Subject: replace pthread_yield with POSIX sched_yield X-Git-Tag: v4.2.1~447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d923d0af1f0bfde2a4385a266c9406181013a580;p=thirdparty%2Ftvheadend.git replace pthread_yield with POSIX sched_yield See: http://linux.die.net/man/3/pthread_yield --- diff --git a/src/api/api_idnode.c b/src/api/api_idnode.c index fa9edb3ec..eb4164621 100644 --- a/src/api/api_idnode.c +++ b/src/api/api_idnode.c @@ -651,7 +651,7 @@ api_idnode_handler } pthread_mutex_unlock(&global_lock); if (destroyed) - pthread_yield(); /* delete penalty */ + sched_yield(); /* delete penalty */ } htsmsg_destroy(msg);