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 <mfc...@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.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel