[libcamera-devel,v2,0/2] libcamera: Small cleanups for pipeline handler locking
mbox series

Message ID 20211226231255.18653-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • libcamera: Small cleanups for pipeline handler locking
Related show

Message

Laurent Pinchart Dec. 26, 2021, 11:12 p.m. UTC
Hello,

Those two small patches clean up the MediaDevice and PipelineHandler
locking. The goal is to prepare for concurrent usage of multiple cameras
exposed by the same pipeline handler (on platforms that support this),
and to fix a thread-safety issue.

Please see individual patches for details.

Laurent Pinchart (2):
  libcamera: media_device: Move recursive lock handling to pipeline
    handler
  libcamera: pipeline_handler: Make lock() and unlock() thread-safe

 include/libcamera/internal/media_device.h     |  1 -
 include/libcamera/internal/pipeline_handler.h |  4 ++++
 src/libcamera/media_device.cpp                | 14 +-------------
 src/libcamera/pipeline_handler.cpp            | 18 +++++++++++++++++-
 4 files changed, 22 insertions(+), 15 deletions(-)


base-commit: 57c2171238d2be832fcfc709bc126e47bb198240