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

Steve Lhomme robux4 at ycbcr.xyz
Mon Apr 6 08:34:57 CEST 2020


OK for me

On 2020-04-04 3:13, Marvin Scholz wrote:
> 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)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list