[FFmpeg-devel] [PATCH v4] vvcdec: add thread executor

Nuo Mi nuomi2021 at gmail.com
Tue Aug 22 16:34:55 EEST 2023


On Thu, Aug 17, 2023 at 12:36 AM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> On Tue, Aug 15, 2023 at 10:50:13PM +0800, Nuo Mi wrote:
> > The executor design pattern was inroduced by java
> > <
> https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/Executor.html
> >
> > it also adapted by python
> > <https://docs.python.org/3/library/concurrent.futures.html>
> > Compared to handcrafted thread pool management, it greatly simplifies
> the thread code.
> > ---
> >  libavutil/Makefile   |   2 +
> >  libavutil/executor.c | 201 +++++++++++++++++++++++++++++++++++++++++++
> >  libavutil/executor.h |  67 +++++++++++++++
> >  3 files changed, 270 insertions(+)
> >  create mode 100644 libavutil/executor.c
> >  create mode 100644 libavutil/executor.h
>
> needs doc/APIchanges addition
> should be ok otherwise
>
Done by v5

>
> thx
>
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> The worst form of inequality is to try to make unequal things equal.
> -- Aristotle
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list