summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-05-10 09:46:10 +0200
committerJacopo Mondi <jacopo@jmondi.org>2021-06-14 12:26:27 +0200
commitebf8b5e7e064228897aeb18206d9bb93a5ff7e42 (patch)
treed24a9b4f25235b692f435c98d3e1fa95d953d4b3 /include/linux
parent1f38e4c73f5d39b366f75b774e76490850031532 (diff)
android: Replace scoped_lock<> with libcamera::MutexLocker
The CameraDevice class uses std::scoped_lock<> to guard access to the class' descriptors_ member. std::scoped_lock<> provides a set of features that guarantees safety when locking multiple mutexes in a critical section, while for single locks happening in a scoped block it does not provides benefits compared to the simplest std::unique_lock<> which libcamera provides the MutexLocker type for. Replace usage of std::scoped_lock<> with libcamera::MutexLocker to make the implementation consistent with the rest of the code base. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
apos;file', 'file.cpp'], ['file-descriptor', 'file-descriptor.cpp'], ['flags', 'flags.cpp'], ['hotplug-cameras', 'hotplug-cameras.cpp'], ['mapped-buffer', 'mapped-buffer.cpp'], ['message', 'message.cpp'], ['object', 'object.cpp'], ['object-delete', 'object-delete.cpp'], ['object-invoke', 'object-invoke.cpp'], ['pixel-format', 'pixel-format.cpp'], ['signal-threads', 'signal-threads.cpp'], ['threads', 'threads.cpp'], ['timer', 'timer.cpp'], ['timer-thread', 'timer-thread.cpp'], ['utils', 'utils.cpp'], ] foreach t : public_tests exe = executable(t[0], t[1], dependencies : libcamera_public, link_with : test_libraries, include_directories : test_includes_public) test(t[0], exe) endforeach foreach t : internal_tests exe = executable(t[0], t[1], dependencies : libcamera_private, link_with : test_libraries, include_directories : test_includes_internal) test(t[0], exe) endforeach