commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 08/18: runtime: block if message block does


From: git
Subject: [Commit-gnuradio] [gnuradio] 08/18: runtime: block if message block doesn't produce
Date: Fri, 1 Jul 2016 16:25:45 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch next
in repository gnuradio.

commit bad298fe973c581312bfd609717404484c67ea3f
Author: Bastian Bloessl <address@hidden>
Date:   Thu Apr 28 15:37:08 2016 +0200

    runtime: block if message block doesn't produce
---
 gnuradio-runtime/lib/tpb_thread_body.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnuradio-runtime/lib/tpb_thread_body.cc 
b/gnuradio-runtime/lib/tpb_thread_body.cc
index ac553c4..1f98454 100644
--- a/gnuradio-runtime/lib/tpb_thread_body.cc
+++ b/gnuradio-runtime/lib/tpb_thread_body.cc
@@ -134,6 +134,10 @@ namespace gr {
         d->set_done(true);
       }
 
+      if(!d->ninputs() && s == block_executor::READY_NO_OUTPUT) {
+        s = block_executor::BLKD_IN;
+      }
+
       switch(s){
       case block_executor::READY:              // Tell neighbors we made 
progress.
         d->d_tpb.notify_neighbors(d);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]