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:
Laurent Pinchart 2021-04-12 22:46:38 +03:00
parent 143b252462
commit 2c661f360b

View file

@ -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>;