[FFmpeg-devel] [PATCH] lavu: add ff_pthread_setname() and use it in various places

Clément Bœsch u at pkh.me
Wed Jan 20 23:16:51 CET 2016


On Wed, Jan 20, 2016 at 10:55:54PM +0100, wm4 wrote:
[...]
> > +static inline void ff_pthread_setname(const char *name)
> > +{
> > +#if defined(__APPLE__)
> > +    pthread_setname_np(name);
> > +#elif defined(__linux__)
> > +    pthread_setname_np(pthread_self(), name);
> 
> Just because you're on Linux it doesn't mean this function is available,
> or even if it is, that it has this signature.
> 

So in the end, you think a convoluted configure check is going to be
necessary?

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160120/d31d6e18/attachment.sig>


More information about the ffmpeg-devel mailing list