[libcamera-devel,v2,0/5] Apply clang thread safety annotation libcamera-core and v4l2
mbox series

Message ID 20220620165027.549085-1-umang.jain@ideasonboard.com
Headers show
Series
  • Apply clang thread safety annotation libcamera-core and v4l2
Related show

Message

Umang Jain June 20, 2022, 4:50 p.m. UTC
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(-)