From 54df37222a72233b471fa44ee8d2beaff0d2dfd8 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 13 May 2016 00:24:14 +0200 Subject: [PATCH] replace pthread_yield with POSIX sched_yield See: http://linux.die.net/man/3/pthread_yield --- src/api/api_idnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api_idnode.c b/src/api/api_idnode.c index fa9edb3..eb41646 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); -- 2.8.2