[libcamera-devel] [PATCH 0/2] libcamera: Small cleanups for pipeline handler locking

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Dec 23 03:33:29 CET 2021


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: 8ff5a8d548eee7c2cb14b355867debdb29e75419
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list