diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-10-17 17:26:14 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-10-17 17:26:14 -0700 |
commit | d172b44f157a1429de69599cf0a06aa61fa7a274 (patch) | |
tree | 239d6edf32ac2ca18eed392ce0ee090bdfb4c1ab /host/include | |
parent | 1b70b3e70df40aae4d1e53037212d77af2fdc4e4 (diff) | |
parent | 9e73914791be936216ea11eea9bd38061ef5f323 (diff) | |
download | uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.gz uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.bz2 uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.zip |
Merge branch 'maint'
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/node_ctrl_base.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/host/include/uhd/rfnoc/node_ctrl_base.hpp b/host/include/uhd/rfnoc/node_ctrl_base.hpp index 82e095b1d..071de803c 100644 --- a/host/include/uhd/rfnoc/node_ctrl_base.hpp +++ b/host/include/uhd/rfnoc/node_ctrl_base.hpp @@ -65,6 +65,18 @@ public: node_map_t list_downstream_nodes() { return _downstream_nodes; }; node_map_t list_upstream_nodes() { return _upstream_nodes; }; + /*! Disconnect this node from all neighbouring nodes. + */ + void disconnect(); + + /*! Identify \p output_port as unconnected + */ + void disconnect_output_port(const size_t output_port); + + /*! Identify \p input_port as unconnected + */ + void disconnect_input_port(const size_t input_port); + // TODO we need a more atomic connect procedure, this is too error-prone. /*! For an existing connection, store the remote port number. @@ -156,8 +168,8 @@ protected: /*********************************************************************** * Structors **********************************************************************/ - node_ctrl_base(void) {}; - virtual ~node_ctrl_base() {}; + node_ctrl_base(void) {} + virtual ~node_ctrl_base() { disconnect(); } /*********************************************************************** * Protected members |