[vlc-devel] [PATCH] thread: change posix thread priorities to 0

Marvin Scholz epirat07 at gmail.com
Sat Apr 4 03:13:45 CEST 2020


Makes it clearer that those have no effect anymore now.
---
 include/vlc_threads.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 1da9f941f7..d94882a17a 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -221,12 +221,15 @@ typedef pthread_key_t   vlc_threadvar_t;
  */
 typedef struct vlc_timer *vlc_timer_t;
 
+/* Thread priorities.
+ * No effect for POSIX threads
+ */
 # define VLC_THREAD_PRIORITY_LOW      0
-# define VLC_THREAD_PRIORITY_INPUT   10
-# define VLC_THREAD_PRIORITY_AUDIO    5
+# define VLC_THREAD_PRIORITY_INPUT    0
+# define VLC_THREAD_PRIORITY_AUDIO    0
 # define VLC_THREAD_PRIORITY_VIDEO    0
-# define VLC_THREAD_PRIORITY_OUTPUT  15
-# define VLC_THREAD_PRIORITY_HIGHEST 20
+# define VLC_THREAD_PRIORITY_OUTPUT   0
+# define VLC_THREAD_PRIORITY_HIGHEST  0
 
 #endif
 
-- 
2.24.1 (Apple Git-126)



More information about the vlc-devel mailing list