aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-01-20 11:20:30 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-01-21 15:21:24 -0600
commite9176649d1cfbbf114127bdc73a49e36406fccd8 (patch)
tree4cb242554e05c26b956a5c29aa34e255538539ec /host/lib/include
parent16b38ff6c64f807d23982f59544e416fc9d3e13e (diff)
downloaduhd-e9176649d1cfbbf114127bdc73a49e36406fccd8.tar.gz
uhd-e9176649d1cfbbf114127bdc73a49e36406fccd8.tar.bz2
uhd-e9176649d1cfbbf114127bdc73a49e36406fccd8.zip
uhd: lambda capture the node instead of vert desc
This commit adds another resolve_all_properties method to use the node instead of the vertex descriptor. The vertex descriptor could be removed. This could cause the lambda capture to have an outdated vertex descriptor, which would result in a hang when looking for it. This resolves the issue by capturing the node and looking for the vertex descriptor. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/rfnoc/graph.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/graph.hpp b/host/lib/include/uhdlib/rfnoc/graph.hpp
index 288de63ce..73f983d41 100644
--- a/host/lib/include/uhdlib/rfnoc/graph.hpp
+++ b/host/lib/include/uhdlib/rfnoc/graph.hpp
@@ -171,6 +171,9 @@ private:
void resolve_all_properties(uhd::rfnoc::resolve_context context,
rfnoc_graph_t::vertex_descriptor initial_node);
+ void resolve_all_properties(uhd::rfnoc::resolve_context context,
+ node_ref_t initial_node);
+
/**************************************************************************
* Action API
*************************************************************************/