[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: runtime: connect message ports after
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: runtime: connect message ports after unlock() |
Date: |
Sun, 2 Oct 2016 16:28:23 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit cce68f26f1641c0a97b0bbc9a4608903aed493c7
Author: Bastian Bloessl <address@hidden>
Date: Fri Sep 30 06:52:22 2016 +0200
runtime: connect message ports after unlock()
---
gnuradio-runtime/lib/flat_flowgraph.cc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnuradio-runtime/lib/flat_flowgraph.cc
b/gnuradio-runtime/lib/flat_flowgraph.cc
index 434a92f..b7e9491 100644
--- a/gnuradio-runtime/lib/flat_flowgraph.cc
+++ b/gnuradio-runtime/lib/flat_flowgraph.cc
@@ -316,6 +316,15 @@ namespace gr {
setup_buffer_alignment(block);
}
+ // Connect message ports connetions
+ for(msg_edge_viter_t i = d_msg_edges.begin(); i != d_msg_edges.end();
i++) {
+ if(FLAT_FLOWGRAPH_DEBUG)
+ std::cout << boost::format("flat_fg connecting msg primitives:
(%s, %s)->(%s, %s)\n") %
+ i->src().block() % i->src().port() %
+ i->dst().block() % i->dst().port();
+ i->src().block()->message_port_sub(i->src().port(),
pmt::cons(i->dst().block()->alias_pmt(), i->dst().port()));
+ }
+
// Now deal with the fact that the block details might have
// changed numbers of inputs and outputs vs. in the old
// flowgraph.