[FFmpeg-devel] [PATCH 1/3] avutil: merge slice threading implementation from avcodec and avfilter

Michael Niedermayer michael at niedermayer.cc
Wed Jul 12 14:25:54 EEST 2017


On Wed, Jul 12, 2017 at 07:44:10AM +0700, Muhammad Faiz wrote:
> Rework it to improve performance. Now mutex is not shared by workers,
> instead each worker has its own mutex and condition variable. This
> reduces lock contention between workers. Also use atomic variable for
> counter.
> 
> The interface also allows execute to run special function on main
> thread, requested by Ronald.
> 
> Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> ---
>  libavutil/Makefile      |   1 +
>  libavutil/slicethread.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++
>  libavutil/slicethread.h |  52 ++++++++++
>  3 files changed, 312 insertions(+)
>  create mode 100644 libavutil/slicethread.c
>  create mode 100644 libavutil/slicethread.h

breaks build on mips (i guess as it was without threads)
src/libavutil/slicethread.c:249: error: conflicting types for ‘avpriv_slicethread_execute’
src/libavutil/slicethread.h:44: note: previous declaration of ‘avpriv_slicethread_execute’ was here
make: *** [libavutil/slicethread.o] Error 1
make: *** Waiting for unfinished jobs....


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170712/432306a1/attachment.sig>


More information about the ffmpeg-devel mailing list