Terminating flowgraph inside

Hello again,

is there any way that block inside a flowgraph terminate that flowgraph
should stop. Something like when source block returns -1 from work
function.
What happens when arbitrary block in the middle of the flowgraph returns
-1?

Hi Nemanja,

What happens when arbitrary block in the middle of the flowgraph
returns -1?
That block is set to the DONE state. After that, all output that still
can be processed is processed, successively setting the downstream
blocks to an “don’t call me, there can be no input” state.
After that, the top_block.wait() call returns.

You probably want to have a look at Tom’s presentation linked in[1].

is there any way that block inside a flowgraph terminate that
flowgraph should stop.
Well, returning WORK_DONE==-1, but you’ve already figured that out, so
my guess is you want something else; would you mind elaborating on your
problem?

Best regards,
Marcus

[1]
http://www.trondeau.com/blog/2013/9/15/explaining-the-gnu-radio-scheduler.html


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs