Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-22 Thread Nuo Mi
On Tue, May 23, 2023 at 12:29 AM Rémi Denis-Courmont wrote: > Le sunnuntaina 21. toukokuuta 2023, 17.24.56 EEST Nuo Mi a écrit : > > > > + > > > > +typedef struct ThreadInfo { > > > > +int idx; > > > > +VVCExecutor *e; > > > > +pthread_t thread; > > > > +} ThreadInfo; > > > > + > > >

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-22 Thread Rémi Denis-Courmont
Le sunnuntaina 21. toukokuuta 2023, 17.24.56 EEST Nuo Mi a écrit : > > > + > > > +typedef struct ThreadInfo { > > > +int idx; > > > +VVCExecutor *e; > > > +pthread_t thread; > > > +} ThreadInfo; > > > + > > > +struct VVCExecutor { > > > +VVCTaskCallbacks cb; > > > +ThreadInfo *t

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Nuo Mi
On Sun, May 21, 2023 at 11:07 PM Lynne wrote: > May 21, 2023, 17:06 by nuomi2...@gmail.com: > > > On Sun, May 21, 2023 at 10:11 PM Lynne wrote: > > > >> May 21, 2023, 15:03 by nuomi2...@gmail.com: > >> > >> > The executor design pattern was inroduced by java > >> > < > >> > https://docs.oracle.c

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Lynne
May 21, 2023, 17:06 by nuomi2...@gmail.com: > On Sun, May 21, 2023 at 10:11 PM Lynne wrote: > >> May 21, 2023, 15:03 by nuomi2...@gmail.com: >> >> > The executor design pattern was inroduced by java >> > < >> https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/Execut

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Nuo Mi
On Sun, May 21, 2023 at 10:11 PM Lynne wrote: > May 21, 2023, 15:03 by nuomi2...@gmail.com: > > > 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 > >

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Nuo Mi
On Sun, May 21, 2023 at 9:15 PM Rémi Denis-Courmont wrote: > Le sunnuntaina 21. toukokuuta 2023, 16.03.06 EEST Nuo Mi a écrit : > > The executor design pattern was inroduced by java > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/conc > > urrent/Executor.html> it al

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Nuo Mi
Hi Rémi, Thank you for the cmments On Sun, May 21, 2023 at 9:15 PM Rémi Denis-Courmont wrote: > Le sunnuntaina 21. toukokuuta 2023, 16.03.06 EEST Nuo Mi a écrit : > > The executor design pattern was inroduced by java > > < > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Lynne
May 21, 2023, 15:03 by nuomi2...@gmail.com: > The executor design pattern was inroduced by java > > it also adapted by python > > Compared t

Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Rémi Denis-Courmont
Le sunnuntaina 21. toukokuuta 2023, 16.03.06 EEST Nuo Mi a écrit : > The executor design pattern was inroduced by java > urrent/Executor.html> it also adapted by python >

[FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor

2023-05-21 Thread Nuo Mi
The executor design pattern was inroduced by java it also adapted by python Compared to handcrafted thread pool management, it greatly simpli