[FFmpeg-devel] [PATCH] lavu: add ff_pthread_setname() and use it in various places
Nicolas George
george at nsup.org
Wed Jan 20 21:50:40 CET 2016
Le primidi 1er pluviôse, an CCXXIV, Clement Boesch a écrit :
> ---
> libavcodec/frame_thread_encoder.c | 2 ++
> libavcodec/pthread_slice.c | 2 ++
> libavfilter/pthread.c | 2 ++
> libavformat/async.c | 2 ++
> libavformat/udp.c | 3 +++
> libavutil/thread.h | 9 +++++++++
> 6 files changed, 20 insertions(+)
>
> diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
> index f4d35f9..6c3b048 100644
> --- a/libavcodec/frame_thread_encoder.c
> +++ b/libavcodec/frame_thread_encoder.c
> @@ -62,6 +62,8 @@ static void * attribute_align_arg worker(void *v){
> ThreadContext *c = avctx->internal->frame_thread_encoder;
> AVPacket *pkt = NULL;
>
> + ff_pthread_setname("ffmpeg frame worker");
> +
The Linux man page says "length is restricted to 16 characters".
Also, I suggest to make it double-click-friendly, i.e. use underscores
instead of spaces.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160120/fff04587/attachment.sig>
More information about the ffmpeg-devel
mailing list