Le 18 octobre 2022 23:59:21 GMT+03:00, Henrik Gramner <[email protected]> a écrit : >On Tue, Oct 18, 2022 at 6:54 PM Anton Khirnov <[email protected]> wrote: >> +static void thread_set_name(PerThreadContext *p) >> +{ >> + AVCodecContext *avctx = p->avctx; >> + int idx = p - p->parent->threads; >> + char name[16]; >> + >> + snprintf(name, sizeof(name), "d:%.7s:ft%d", avctx->codec->name, idx); >> + >> + ff_thread_setname(name); >> +} > >How about having some kind of prefix to indicate that those are >libavcodec threads? > >Could be helpful in a scenario where a process has threads spawned by >35 different libraries. >_______________________________________________ >ffmpeg-devel mailing list >[email protected] >https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > >To unsubscribe, visit link above, or email >[email protected] with subject "unsubscribe". >
There's only 15 characters maximum, so not much for a prefix . I guess that's why it's just d:... _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
