diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-09-30 13:25:53 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-09-30 14:13:55 +0000 |
commit | 879d1313ba69d9ced8424f54ffeea6a3c60496f0 (patch) | |
tree | 6e6f4be4b9ec992a019aa4d079c844a9649ef8ed /arm_compute/graph/Graph.h | |
parent | ea80348ef330bd6415ec6dae45b99873710f812a (diff) | |
download | ComputeLibrary-879d1313ba69d9ced8424f54ffeea6a3c60496f0.tar.gz |
COMPMID-2452: Fix compilation issues on armclang
Change-Id: I41bd60760270a2c7d83e391fd9430b4513ab00bc
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2002
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph/Graph.h')
-rw-r--r-- | arm_compute/graph/Graph.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 <map> #include <memory> #include <string> -#include <thread> #include <utility> #include <vector> +#ifndef BARE_METAL +#include <thread> +#endif /* BARE_METAL */ + namespace arm_compute { namespace graph @@ -231,7 +234,7 @@ private: template <typename NT, typename... Ts> inline NodeID Graph::add_node(Ts &&... args) { - std::lock_guard<arm_compute::Mutex> lock(_mtx); + arm_compute::lock_guard<arm_compute::Mutex> lock(_mtx); // Create node NodeID nid = _nodes.size(); |