[0/4] IPC disconnect signals
mbox series

Message ID 20241018075942.1150378-1-chenghaoyang@chromium.org
Headers show
Series
  • IPC disconnect signals
Related show

Message

Harvey Yang Oct. 18, 2024, 7:57 a.m. UTC
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(-)