summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/flowgraph.cc
diff options
context:
space:
mode:
authorTim O'Shea <tim.oshea753@gmail.com>2013-10-05 13:01:57 -0400
committerJohnathan Corgan <johnathan@corganlabs.com>2013-10-12 09:08:22 -0700
commit273033902106af6d391d824faf97812617f39c6f (patch)
tree361ba425bdc90dce152b9fc3f79c318dd0270f01 /gnuradio-runtime/lib/flowgraph.cc
parentf41356028926c4a7e7d78f93b97ee2df6096a4aa (diff)
runtime: make sure all message only blocks always get a thread context (not just message recievers), otherwise no thread context is created and start() is never called
Diffstat (limited to 'gnuradio-runtime/lib/flowgraph.cc')
-rw-r--r--gnuradio-runtime/lib/flowgraph.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/flowgraph.cc b/gnuradio-runtime/lib/flowgraph.cc
index 0b0285088b..634236dea0 100644
--- a/gnuradio-runtime/lib/flowgraph.cc
+++ b/gnuradio-runtime/lib/flowgraph.cc
@@ -192,8 +192,9 @@ namespace gr {
// make sure free standing message blocks are included
for(msg_edge_viter_t p = d_msg_edges.begin(); p != d_msg_edges.end(); p++) {
- //for now only blocks receiving messages get a thread context - uncomment to allow senders to also obtain one
- // tmp.push_back(p->src().block());
+ // all msg blocks need a thread context - otherwise start() will never be called!
+ // even if it is a sender that never does anything
+ tmp.push_back(p->src().block());
tmp.push_back(p->dst().block());
}