aboutsummaryrefslogtreecommitdiff
path: root/src/graph
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-30 13:25:53 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-30 14:13:55 +0000
commit879d1313ba69d9ced8424f54ffeea6a3c60496f0 (patch)
tree6e6f4be4b9ec992a019aa4d079c844a9649ef8ed /src/graph
parentea80348ef330bd6415ec6dae45b99873710f812a (diff)
downloadComputeLibrary-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 'src/graph')
-rw-r--r--src/graph/Graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph/Graph.cpp b/src/graph/Graph.cpp
index 9d437b1834..edc8d6b33d 100644
--- a/src/graph/Graph.cpp
+++ b/src/graph/Graph.cpp
@@ -68,7 +68,7 @@ bool Graph::remove_node(NodeID nid)
EdgeID Graph::add_connection(NodeID source, size_t source_idx, NodeID sink, size_t sink_idx)
{
- std::lock_guard<arm_compute::Mutex> lock(_mtx);
+ arm_compute::lock_guard<arm_compute::Mutex> lock(_mtx);
// Check if node index is valid, if node exists and finally if the connection index is valid
ARM_COMPUTE_ERROR_ON((source >= _nodes.size()) || (_nodes[source] == nullptr) || (source_idx >= _nodes[source]->num_outputs()));