[vlc-devel] [PATCH v3 1/4] thread: add a function to give names to threads

Marvin Scholz epirat07 at gmail.com
Thu Nov 12 14:33:06 CET 2020



On 12 Nov 2020, at 12:35, Alexandre Janniaux wrote:

> Hi,
>
> On Tue, Nov 10, 2020 at 12:05:47PM +0100, Steve Lhomme wrote:
>> +#elif defined(__APPLE__)
>> +void vlc_thread_set_name(const char *name)
>> +{
>> +    pthread_setname_np(name);
>> +}
>
> Does it work with xcode / lldb? Maybe it also needs setting
> the same NSThread property too?
>

Yes this should work fine.
There is no need to use NSThread here, it's just a convenience wrapper
around pthreads for Objective-C code. Internally, all it does is call
the respective pthread functions.

> Regards,
> --
> Alexandre Janniaux
> Videolabs
> _______________________________________________
> 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