[PATCH 0/4] IPC disconnect signals

Harvey Yang chenghaoyang at chromium.org
Fri Oct 18 09:57:33 CEST 2024


Hi folks,

This series of patches adds signals to detect disconnections in the IPC.
It also reuses signal `Camera::disconnected`, which were used when a
whole pipeline handler is disconnected.

This passes gitlab pipeline:
https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1292655

BR,
Harvey



Harvey Yang (4):
  libcamera: Add signal disconnected for IPC
  libcamera: Use disconnect signal in ipa proxy worker
  libcamera: Detect IPC disconnection with poll
  libcamera: Make Camera::Private::isAcquired() protected

 include/libcamera/base/event_notifier.h       |  1 +
 include/libcamera/internal/camera.h           |  6 +++-
 .../libcamera/internal/ipc_pipe_unixsocket.h  |  2 ++
 include/libcamera/internal/ipc_unixsocket.h   |  3 ++
 src/libcamera/base/event_dispatcher_poll.cpp  |  9 ++++++
 src/libcamera/base/event_notifier.cpp         |  5 +++
 src/libcamera/camera.cpp                      | 13 ++++++++
 src/libcamera/ipc_pipe_unixsocket.cpp         |  8 +++++
 src/libcamera/ipc_unixsocket.cpp              | 32 +++++++++++++++++--
 .../module_ipa_proxy.cpp.tmpl                 |  8 +++++
 .../module_ipa_proxy.h.tmpl                   |  2 ++
 .../module_ipa_proxy_worker.cpp.tmpl          |  5 +++
 12 files changed, 91 insertions(+), 3 deletions(-)

-- 
2.47.0.rc1.288.g06298d1525-goog



More information about the libcamera-devel mailing list