From 6bd43946a71173cbf0f1d318843ba34d6849dc30 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 7 Jun 2019 21:37:15 -0700 Subject: rfnoc: Add shutdown feature to blocks On destruction, the rfnoc_graph will call shutdown() on all blocks. This allows a safe de-initialization of blocks independent of the lifetime of the noc_block_base::sptr. Also adds the shutdown feature to null_block_control. --- host/lib/rfnoc/node.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/rfnoc/node.cpp') diff --git a/host/lib/rfnoc/node.cpp b/host/lib/rfnoc/node.cpp index 7eff22eab..b3ad2b380 100644 --- a/host/lib/rfnoc/node.cpp +++ b/host/lib/rfnoc/node.cpp @@ -540,6 +540,11 @@ void node_t::receive_action(const res_source_info& src_info, action_info::sptr a } } +void node_t::shutdown() +{ + RFNOC_LOG_DEBUG("shutdown() not implemented."); +} + bool node_t::_has_port(const res_source_info& port_info) const { return (port_info.type == res_source_info::INPUT_EDGE -- cgit v1.2.3