[0/1] Add MailBox
mbox series

Message ID 20241001081824.960009-1-chenghaoyang@google.com
Headers show
Series
  • Add MailBox
Related show

Message

Cheng-Hao Yang Oct. 1, 2024, 8:10 a.m. UTC
Hi folks,

This patch adds MailBox as a template helper class. It's often used with
Tasks, introduced in another patch: "Add Task and Scheduler". Normally,
there will be a task as the producer of a MailBox (with type
SharedMailBox), and other tasks that run after the producer task to use
the data as consumers.

This patch passed gitlab pipeline:
https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1281432

Please take a look. Thanks!

BR,
Harvey

Han-Lin Chen (1):
  libcamera: Add mailbox template helper

 include/libcamera/internal/mailbox.h   | 50 +++++++++++++
 include/libcamera/internal/meson.build |  1 +
 src/libcamera/mailbox.cpp              | 97 ++++++++++++++++++++++++++
 src/libcamera/meson.build              |  1 +
 4 files changed, 149 insertions(+)
 create mode 100644 include/libcamera/internal/mailbox.h
 create mode 100644 src/libcamera/mailbox.cpp