mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +03:00
android: Disable copy and move for CameraHalManager
The CameraHalManager should be instantiated once only, and never copied or moved. Disable copying and moving. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
parent
143b252462
commit
2c661f360b
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
#include <hardware/hardware.h>
|
||||
#include <system/camera_metadata.h>
|
||||
|
||||
#include <libcamera/base/class.h>
|
||||
|
||||
#include <libcamera/camera_manager.h>
|
||||
|
||||
#include "camera_hal_config.h"
|
||||
|
@ -40,6 +42,8 @@ public:
|
|||
void setCallbacks(const camera_module_callbacks_t *callbacks);
|
||||
|
||||
private:
|
||||
LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraHalManager)
|
||||
|
||||
using Mutex = std::mutex;
|
||||
using MutexLocker = std::unique_lock<std::mutex>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue