From ca4111d6eef00d244145e9b32e87fc101034527d Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 21 Feb 2020 13:21:37 +0000 Subject: COMPMID-2819: Delete move semantics from classes that use std::mutex Signed-off-by: Georgios Pinitas Change-Id: I6ea0ab7af7d2b9cb2dcb23627eb909cf7e88a5b0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2775 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio --- arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h b/arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h index 2eebaf9ee4..445e12af03 100644 --- a/arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEMinMaxLayerKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -48,10 +48,10 @@ public: NEMinMaxLayerKernel(const NEMinMaxLayerKernel &) = delete; /** Prevent instances of this class from being copied (As this class contains pointers) */ NEMinMaxLayerKernel &operator=(const NEMinMaxLayerKernel &) = delete; - /** Allow instances of this class to be moved */ - NEMinMaxLayerKernel(NEMinMaxLayerKernel &&) = default; - /** Allow instances of this class to be moved */ - NEMinMaxLayerKernel &operator=(NEMinMaxLayerKernel &&) = default; + /** Prevent instances of this class from being moved (As this class contains non movable objects) */ + NEMinMaxLayerKernel(NEMinMaxLayerKernel &&) = delete; + /** Prevent instances of this class from being moved (As this class contains non movable objects) */ + NEMinMaxLayerKernel &operator=(NEMinMaxLayerKernel &&) = delete; /** Default destructor */ ~NEMinMaxLayerKernel() = default; @@ -82,9 +82,9 @@ public: private: void update_min_max(float *out_ptr, float min, float max); - const ITensor *_input; - ITensor *_output; - Mutex _mtx; + const ITensor *_input; + ITensor *_output; + arm_compute::Mutex _mtx; }; } // namespace arm_compute #endif /* ARM_COMPUTE_NEMINMAXLAYERKERNEL_H */ -- cgit v1.2.1