aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/noc_block_base.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/include/uhd/rfnoc/noc_block_base.hpp b/host/include/uhd/rfnoc/noc_block_base.hpp
index b9ebda63b..b18de41fc 100644
--- a/host/include/uhd/rfnoc/noc_block_base.hpp
+++ b/host/include/uhd/rfnoc/noc_block_base.hpp
@@ -311,6 +311,8 @@ protected:
virtual void deinit();
private:
+ friend struct block_initializer;
+
/*! Update the tick rate of this block
*
* This will make sure that the underlying register_iface is notified of the
@@ -325,6 +327,15 @@ private:
*/
void shutdown() override;
+ /*! Run post-init tasks, i.e., after the constructor concludes.
+ *
+ * The purpose of this method is to make sure the block is in a good state
+ * after the block controller's ctor has concluded. This allows checking
+ * that block configurations follow certain rules, even though they may not
+ * even be part of UHD.
+ */
+ void post_init();
+
/**************************************************************************
* Attributes
**************************************************************************/