aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch
blob: d57a5f7e4e7568fc237b498e00572ab330c472e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 54df37222a72233b471fa44ee8d2beaff0d2dfd8 Mon Sep 17 00:00:00 2001
From: Carlo Landmeter <clandmeter@gmail.com>
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