mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
android: Rename CameraDevice::mutex_
With the introduction of an additional mutex class member, the name of the existing one is too generic. Rename CameraDevice::mutex_ in CameraDevice::descriptorsMutex_ and use the libcamera provided libcamera::Mutex type to align the style 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>
This commit is contained in:
parent
10b31904d8
commit
103dfb85a7
2 changed files with 4 additions and 3 deletions
|
@ -2009,7 +2009,7 @@ int CameraDevice::processCaptureRequest(camera3_capture_request_t *camera3Reques
|
|||
worker_.queueRequest(descriptor.request_.get());
|
||||
|
||||
{
|
||||
MutexLocker lock(mutex_);
|
||||
MutexLocker descriptorsLock(descriptorsMutex_);
|
||||
descriptors_[descriptor.request_->cookie()] = std::move(descriptor);
|
||||
}
|
||||
|
||||
|
@ -2020,7 +2020,7 @@ void CameraDevice::requestComplete(Request *request)
|
|||
{
|
||||
decltype(descriptors_)::node_type node;
|
||||
{
|
||||
MutexLocker lock(mutex_);
|
||||
MutexLocker descriptorsLock(descriptorsMutex_);
|
||||
auto it = descriptors_.find(request->cookie());
|
||||
if (it == descriptors_.end()) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue