aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-09 17:40:33 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-16 11:45:48 +0000
commite874ef9b845424dceeac4211ca9dfec24949f03c (patch)
tree053e1ecedfc3250f70578b7833e5a268f87b0f49 /src/core/NEON/kernels/NEMinMaxLayerKernel.cpp
parent7470d059a676d217c57c20cf3cd5da5cfbd37c75 (diff)
downloadComputeLibrary-e874ef9b845424dceeac4211ca9dfec24949f03c.tar.gz
COMPMID-2646: Wrap thread-related structure to ease bare-metal support
Wraps "lock_guard" and "unique_lock" to ease bare-metal support. Adds basic armclang compilation flow. Change-Id: I44ccd042652acd6a9b442c57c879db3891abb0e2 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1923 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Marquez <pablo.tello@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEMinMaxLayerKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEMinMaxLayerKernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp b/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp
index fe3af0b44..f69c88324 100644
--- a/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp
+++ b/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp
@@ -212,7 +212,7 @@ void NEMinMaxLayerKernel::reset()
void NEMinMaxLayerKernel::update_min_max(float *out_ptr, float min, float max)
{
- std::lock_guard<Mutex> lock(_mtx);
+ arm_compute::lock_guard<Mutex> lock(_mtx);
const float32x2_t old_min = vld1_dup_f32(out_ptr);
const float32x2_t old_max = vld1_dup_f32(out_ptr + 1);