From 83abb81e61beec213f9f83843d6fab637a578f4a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 23 Jul 2019 10:13:38 -0700 Subject: rfnoc: actions: Allow sending actions to self Sending actions to self is useful because calling post_action() from within an action handler will not actually trigger the action. Instead, it will defer delivery of the action. Allowing sending actions to self will allow to add another action, in deterministic order, and the execution of another action handler. --- host/lib/include/uhdlib/rfnoc/node_accessor.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'host/lib/include/uhdlib') diff --git a/host/lib/include/uhdlib/rfnoc/node_accessor.hpp b/host/lib/include/uhdlib/rfnoc/node_accessor.hpp index 93e2733cf..517d2b517 100644 --- a/host/lib/include/uhdlib/rfnoc/node_accessor.hpp +++ b/host/lib/include/uhdlib/rfnoc/node_accessor.hpp @@ -98,6 +98,16 @@ public: node->receive_action(port_info, action); } + /*! Fake a post_action() call from this node + * + * This will call node_t::post_action() (see that for details). + */ + void post_action( + node_t* node, const res_source_info& edge_info, action_info::sptr action) + { + node->post_action(edge_info, action); + } + /*! Check topology for this block * * See node_t::check_topology() for details -- cgit v1.2.3