summaryrefslogtreecommitdiff
path: root/src/android/mm/cros_camera_buffer.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-05-10 10:58:12 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-11 03:13:45 +0300
commit7de2bbed9b0965e894dbbecd3b0d96c375b3ef90 (patch)
treeccc4b8574fea12e771b9884b426a2101a93a5992 /src/android/mm/cros_camera_buffer.cpp
parent340477f987f13c7e02b8848b190c6ef75608f6e8 (diff)
ipa: raspberrypi: Switch to std::scoped_lock in the Metadata class
Replace std::lock_guard with std::scoped_lock. When locking a single mutex, both are functionally the same. When locking two mutexes in the operator= overload, the scoped_lock uses a deadlock avoidance algorithm to avoid deadlock. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/mm/cros_camera_buffer.cpp')
0 files changed, 0 insertions, 0 deletions