[vlc-devel] [PATCH 0/6] New executor API

Romain Vimont rom1v at videolabs.io
Mon Sep 7 17:40:05 CEST 2020


This patchset follows previous RFCs ([1] and [2]).

Changes from RFCv2:
 - various bugfixes
 - add a new function vlc_executor_WaitIdle() to wait for all tasks to be
   either canceled or complete
 - add executor unit tests
 - use executor in fetcher and thumbnailer (was already done in preparser)
 - remove background worker

Regards,
Romain

Branch: https://code.videolan.org/rom1v/vlc/commits/executor.v1

[1]: https://mailman.videolan.org/pipermail/vlc-devel/2020-August/136696.html
[2]: https://mailman.videolan.org/pipermail/vlc-devel/2020-September/136944.html

Romain Vimont (6):
  executor: introduce new executor API
  executor: add unit tests
  preparser: use vlc_executor_t
  fetcher: use vlc_executor_t
  thumbnailer: use vlc_executor_t
  misc: remove background_worker

 include/vlc_executor.h       | 216 +++++++++++++++++++
 src/Makefile.am              |   3 +-
 src/input/thumbnailer.c      | 391 +++++++++++++++++++---------------
 src/libvlccore.sym           |   5 +
 src/misc/background_worker.c | 363 -------------------------------
 src/misc/background_worker.h | 203 ------------------
 src/misc/executor.c          | 291 +++++++++++++++++++++++++
 src/preparser/fetcher.c      | 379 ++++++++++++++++++---------------
 src/preparser/preparser.c    | 401 ++++++++++++++++++++++-------------
 test/Makefile.am             |   3 +
 test/src/misc/executor.c     | 282 ++++++++++++++++++++++++
 11 files changed, 1478 insertions(+), 1059 deletions(-)
 create mode 100644 include/vlc_executor.h
 delete mode 100644 src/misc/background_worker.c
 delete mode 100644 src/misc/background_worker.h
 create mode 100644 src/misc/executor.c
 create mode 100644 test/src/misc/executor.c

-- 
2.28.0



More information about the vlc-devel mailing list