[vlc-devel] commit: We need both priority scheduling and thread priority scheduling here ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 7 17:13:54 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 7 18:08:39 2009 +0300| [5cde14c1e7989f50c0f9aaa839aabd414d6cbc86] | committer: Rémi Denis-Courmont
We need both priority scheduling and thread priority scheduling here
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cde14c1e7989f50c0f9aaa839aabd414d6cbc86
---
src/misc/threads.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index b4da0f6..149e761 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -784,7 +784,9 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
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, };
int policy;
More information about the vlc-devel
mailing list