From da89292f211fab421e5200f4831507ab5a4965a1 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 20 Jun 2019 14:30:55 -0700 Subject: rfnoc: graph: Initialize properties on all nodes during init This will call init_props() on every block after the device initialization is complete, but before control returns to the user. --- host/lib/rfnoc/block_container.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/rfnoc/block_container.cpp') diff --git a/host/lib/rfnoc/block_container.cpp b/host/lib/rfnoc/block_container.cpp index 6bbb3828b..e7fd396ba 100644 --- a/host/lib/rfnoc/block_container.cpp +++ b/host/lib/rfnoc/block_container.cpp @@ -79,5 +79,12 @@ void block_container_t::shutdown() for (auto it = _blocks.begin(); it != _blocks.end(); ++it) { node_accessor.shutdown(it->get()); } +} +void block_container_t::init_props() +{ + node_accessor_t node_accessor{}; + for (auto it = _blocks.begin(); it != _blocks.end(); ++it) { + node_accessor.init_props(it->get()); + } } -- cgit v1.2.3