[libcamera-devel] [PATCH v2 0/5] Apply clang thread safety annotation libcamera-core and v4l2
Umang Jain
umang.jain at ideasonboard.com
Mon Jun 20 18:50:22 CEST 2022
Ressurcting the continuation of thread safety annotation by Hiro.
I have excluded two fixes from the series which are submitted
standalone on the list as:
- libcamera: base: thread: Protect exitCode by mutex in exit()
- libcamera: camera_manager: Protect cameras_ by mutex in cleanup()
Original cover letter:
This applies clang thread safety annotations to libcamera/base, and
libcamera/camera_manager and v4l2. I cannot annotate Signal and some
variables in thread.cpp is because the used Mutexes are invisible
from their header files.
Hirokazu Honda (5):
libcamera: base: semaphore: Apply clang thread safety annotation
libcamera: base: thread: Apply clang thread safety annotation
libcamera: camera_manager: Apply clang thread safety annotation
v4l2: v4l2_camera_proxy: Apply clang thread safety annotation
v4l2: v4l2_camera: Apply clang thread safety annotation
include/libcamera/base/semaphore.h | 10 +++++-----
src/libcamera/base/semaphore.cpp | 2 +-
src/libcamera/base/thread.cpp | 22 +++++++++++++++-------
src/libcamera/camera_manager.cpp | 17 +++++++++--------
src/v4l2/v4l2_camera.cpp | 5 ++---
src/v4l2/v4l2_camera.h | 14 ++++++++------
src/v4l2/v4l2_camera_proxy.h | 12 +++++++-----
7 files changed, 47 insertions(+), 35 deletions(-)
--
2.31.1
More information about the libcamera-devel
mailing list