On 10.02.2014 09:18, Tommy Tracy II wrote:
Dear Gnuradio Community,
I have some custom gnu radio blocks that make up my flow graph. I want
one of my blocks to kill this flow graph (cause all blocks to call their
destructors). When the source is computing its last set of inputs, I
want it to let all the other blocks know it’s time to stop. Ideally,
this source would finish its computation, and allow the sink block to
sink the data before stopping. How would I go about doing this?
Have your block return WORK_DONE (or -1) in the work function.
Note this doesn't call the destructors, though! They get called when
your blocks go out of scope. It makes blocks call their stop(), though.
MB
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio