Commit 5cde14c1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

We need both priority scheduling and thread priority scheduling here

parent 41a159bb
...@@ -784,7 +784,9 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data, ...@@ -784,7 +784,9 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
pthread_sigmask (SIG_BLOCK, &set, &oldset); pthread_sigmask (SIG_BLOCK, &set, &oldset);
} }
#if (_POSIX_THREAD_PRIORITY_SCHEDULING >= 0) #if defined (_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING >= 0) \
&& defined (_POSIX_THREAD_PRIORITY_SCHEDULING) \
&& (_POSIX_THREAD_PRIORITY_SCHEDULING >= 0)
{ {
struct sched_param sp = { .sched_priority = priority, }; struct sched_param sp = { .sched_priority = priority, };
int policy; int policy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment