On Wed, Jan 20, 2016 at 09:44:32PM +0100, Clément Bœsch wrote:
> diff --git a/libavutil/thread.h b/libavutil/thread.h
> index 32ddf40..a7b5763 100644
> --- a/libavutil/thread.h
> +++ b/libavutil/thread.h
> @@ -169,4 +169,13 @@ static inline int ff_thread_once(char *control, void 
> (*routine)(void))
>  
>  #endif
>  
> +static inline void ff_pthread_setname(const char *name)
> +{
> +#if defined(__APPLE__)
> +    pthread_setname_np(name);

> +#elif defined(__linux__)

You might want to check this in configure since mingw-w64 (and probably other
platforms) supports this as well.

Timothy
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to