From 879d1313ba69d9ced8424f54ffeea6a3c60496f0 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 30 Sep 2019 13:25:53 +0100 Subject: COMPMID-2452: Fix compilation issues on armclang Change-Id: I41bd60760270a2c7d83e391fd9430b4513ab00bc Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2002 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/graph/Graph.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'arm_compute/graph/Graph.h') diff --git a/arm_compute/graph/Graph.h b/arm_compute/graph/Graph.h index 878976f0af..92507e74e9 100644 --- a/arm_compute/graph/Graph.h +++ b/arm_compute/graph/Graph.h @@ -35,10 +35,13 @@ #include #include #include -#include #include #include +#ifndef BARE_METAL +#include +#endif /* BARE_METAL */ + namespace arm_compute { namespace graph @@ -231,7 +234,7 @@ private: template inline NodeID Graph::add_node(Ts &&... args) { - std::lock_guard lock(_mtx); + arm_compute::lock_guard lock(_mtx); // Create node NodeID nid = _nodes.size(); -- cgit v1.2.1