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

Michael Niedermayer michael at niedermayer.cc
Mon Aug 14 19:46:21 EEST 2023


On Wed, Jul 19, 2023 at 09:13:00PM +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

i would probably have choosen av_* instead of avpriv_*, not sure someone
suggested avpriv ?

but LGTM

thx

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

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230814/da7fff1f/attachment.sig>


More information about the ffmpeg-devel mailing list