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

Muhammad Faiz mfcc64 at gmail.com
Wed Jul 19 12:12:41 EEST 2017


On Tue, Jul 18, 2017 at 2:14 PM, Muhammad Faiz <mfcc64 at gmail.com> wrote:
> On Wed, Jul 12, 2017 at 8:44 PM, Muhammad Faiz <mfcc64 at gmail.com> 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
>>
>
> I'm going to push the patchset tomorrow.
>
> Thank's

Applied, also update libavutil version.

Thank's


More information about the ffmpeg-devel mailing list