[vlc-commits] core: set inheritsched on pthreads

Ilkka Ollakka git at videolan.org
Mon Sep 26 19:33:54 CEST 2016


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Sep 26 20:22:20 2016 +0300| [c811ca6b08ff48c1adbc1a2ac178219a50be7199] | committer: Ilkka Ollakka

core: set inheritsched on pthreads

This makes scheduling options to be passed on thread to be created and
rt-priotities to actually take effect.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c811ca6b08ff48c1adbc1a2ac178219a50be7199
---

 src/posix/thread.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/posix/thread.c b/src/posix/thread.c
index ec0fbdb..4f5f10e 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -457,6 +457,7 @@ static int vlc_clone_attr (vlc_thread_t *th, pthread_attr_t *attr,
 
         pthread_attr_setschedpolicy (attr, policy);
         pthread_attr_setschedparam (attr, &sp);
+        pthread_attr_setinheritsched (attr, PTHREAD_EXPLICIT_SCHED);
     }
 #else
     (void) priority;



More information about the vlc-commits mailing list