[FFmpeg-devel] [PATCH] lavu/thread: add support for setting thread name on *bsd and solaris

Brad Smith brad at comstyle.com
Tue Jan 9 06:51:56 EET 2024


On 2024-01-06 12:27 p.m., Michael Niedermayer wrote:
> On Wed, Jan 03, 2024 at 11:19:56PM -0500, Brad Smith wrote:
>> lavu/thread: add support for setting thread name on *bsd and solaris
>>
>> FreeBSD/DragonFly/Solaris use pthread_setname_np(). OpenBSD uses pthread_set_name_np().
>>
>> Signed-off-by: Brad Smith <brad at comstyle.com>
>> ---
>>   configure          | 10 ++++++++++
>>   libavutil/thread.h | 14 ++++++++++++--
>>   2 files changed, 22 insertions(+), 2 deletions(-)
> this breaks build on linux
>
>   ./configure --enable-pthreads
> ERROR: pthreads requested but not found
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
> Include the log file "ffbuild/config.log" produced by configure as this will help
> solve the problem.

Sent a v2 diff.


More information about the ffmpeg-devel mailing list