diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-05-13 00:33:16 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-05-13 00:33:21 +0200 |
commit | a78e8b8b56e1195ccb513ece4461567c2e6238d7 (patch) | |
tree | a26adac9c7e37cd57b9477897244413532af2702 /testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch | |
parent | 204c8cc0980353ed4d635612799585ff8e9168a2 (diff) | |
download | aports-a78e8b8b56e1195ccb513ece4461567c2e6238d7.tar.bz2 aports-a78e8b8b56e1195ccb513ece4461567c2e6238d7.tar.xz |
testing/tvheadend-git: new snapshot
Diffstat (limited to 'testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch')
-rw-r--r-- | testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch b/testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch new file mode 100644 index 000000000..d57a5f7e4 --- /dev/null +++ b/testing/tvheadend-git/0001-replace-pthread_yield-with-POSIX-sched_yield.patch @@ -0,0 +1,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 + |