Hi Gilad, On Fri, Oct 06, 2017 at 03:17:52PM +0000, Gilad Beeri (ApolloShield) wrote: > I have a flowgraph used for simulations that uses a File Source with no > repeat. > I want to run some code after the flowgraph is done (-> when the source > returns -1). > How can I achieve that?
If you are ok with the flowgraph blocking your current thread you could call `run()` on the top_block. Or you could continue doing other calculations on your data after calling `start()` and then call `wait()` on the top_block. `wait()` will either block until the flow graph is done or return immediatly if the flowgraph was done already. In either case you can be sure the flowgraph is done. Cheers Andrej -- Andrej Rode GPG Key: 750B CBBB 4A75 811A 4D5F 03ED 5C23 7FB8 9A7D A2AA
signature.asc
Description: Digital signature
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
