aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-07-04 00:13:00 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:29 -0800
commitdbca54be2480a9ea1e84dd4b73349fd07fcaafe9 (patch)
tree5e06f22cf82b2ac6fe3d3021ef928a597111622c /host/include
parent75a090543b8fb8e7c875387eee6d3fe7227e4450 (diff)
downloaduhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.tar.gz
uhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.tar.bz2
uhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.zip
rfnoc: node: Make register_property() unlock RW access
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/node.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/host/include/uhd/rfnoc/node.hpp b/host/include/uhd/rfnoc/node.hpp
index 04b3d863f..eaeea20af 100644
--- a/host/include/uhd/rfnoc/node.hpp
+++ b/host/include/uhd/rfnoc/node.hpp
@@ -182,6 +182,15 @@ protected:
/*! Register a property for this block
*
+ * This is typically called from the constructor. It is possible to register
+ * properties later, but then the node must take care of serialization.
+ *
+ * This has the intentional side-effect of setting the access mode to RW for
+ * the property. The idea is that after registering a property, the node
+ * might need some time to settle on the default value. The access mode will
+ * either be reset after the constructor is finished, or the next time
+ * properties are resolved.
+ *
* \param prop A reference to the property
* \param clean_callback A callback that gets executed whenever this property
* is dirty and gets marked clean
@@ -454,7 +463,7 @@ private:
*/
void resolve_all();
- /*! Mark all properties as clean
+ /*! Mark all properties as clean and read-only
*
* When dirty properties have a clean-callback registered, that will also
* get triggered.