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

Steve Lhomme robux4 at ycbcr.xyz
Mon Apr 6 10:13:29 CEST 2020


On 2020-04-06 10:02, Rémi Denis-Courmont wrote:
> Le lauantaina 4. huhtikuuta 2020, 4.13.45 EEST Marvin Scholz a écrit :
>> Makes it clearer that those have no effect anymore now.
> 
> IMO, we should remove the priority parameter as François implied.
> 
> If somebody really has a demonstrated use of priorities, they can use their
> OS-specific call or vlc_set_priority().

That means calling vlc_set_priority() in the 101 places vlc_clone() is 
called.

Unless it's demontrasted that it doesn't work I prefer the conservative 
approach of keeping things as they are. Unless you plan to fix it if it 
actually breaks/damages things.

>> ---
>>   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
> 
> 
> -- 
> Rémi Denis-Courmont
> Tapiola new town, Uusimaan Republic
> 
> 
> 
> _______________________________________________
> 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