mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 09:25:07 +03:00
libcamera: camera_manager: Make CameraManager::Private::mutex_ mutable
The mutex_ stored in the CameraManager::Private class is used to protect members that may need to be accessed from const functions. Make it mutable to allow this. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
8e42c2feb7
commit
b86356feee
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
* - initialized_ and status_ during initialization
|
||||
* - cameras_ and camerasByDevnum_ after initialization
|
||||
*/
|
||||
Mutex mutex_;
|
||||
mutable Mutex mutex_;
|
||||
std::vector<std::shared_ptr<Camera>> cameras_;
|
||||
std::map<dev_t, std::weak_ptr<Camera>> camerasByDevnum_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue