On 12.07.2015 06:55, Marcus Müller wrote:
> Hi Chen Chen,
> 
> After the first block's work returns WORK_DONE, the rest of the buffers
> is processed, and the flow graph is stopped.
> In principle, you can restart that flow graph, but generally, that's not
> a good idea -- stopping the flow graph usually brings blocks into a
> state where continuing to work is impossible. For example, the file sink
> closes the file.

To be precise, you shouldn't restart the same top block, but you can
create a new one. If your app needs this, you could have the top block
go out of scope once it's done it's job, then create a new one for the
next one.

M


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to