diff options
| author | Martin Braun <martin.braun@ettus.com> | 2019-07-04 00:13:00 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:29 -0800 | 
| commit | dbca54be2480a9ea1e84dd4b73349fd07fcaafe9 (patch) | |
| tree | 5e06f22cf82b2ac6fe3d3021ef928a597111622c /host/lib | |
| parent | 75a090543b8fb8e7c875387eee6d3fe7227e4450 (diff) | |
| download | uhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.tar.gz uhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.tar.bz2 uhd-dbca54be2480a9ea1e84dd4b73349fd07fcaafe9.zip  | |
rfnoc: node: Make register_property() unlock RW access
Diffstat (limited to 'host/lib')
| -rw-r--r-- | host/lib/rfnoc/node.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/rfnoc/node.cpp b/host/lib/rfnoc/node.cpp index cdb69e158..d97588bab 100644 --- a/host/lib/rfnoc/node.cpp +++ b/host/lib/rfnoc/node.cpp @@ -94,6 +94,8 @@ void node_t::register_property(property_base_t* prop, resolve_callback_t&& clean      if (clean_callback) {          _clean_cb_registry[prop] = std::move(clean_callback);      } + +    prop_accessor_t{}.set_access(prop, property_base_t::RW);  }  void node_t::add_property_resolver( @@ -353,7 +355,7 @@ void node_t::init_props()          }      } -    // 4) Mark properties as clean +    // 4) Mark properties as clean and read-only      clean_props();  } @@ -429,6 +431,7 @@ void node_t::clean_props()                  _clean_cb_registry.at(prop)();              }              prop_accessor.mark_clean(*prop); +            prop_accessor.set_access(prop, property_base_t::RO);          }      }  }  | 
