discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Message passing - issue with messages left in que


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Message passing - issue with messages left in queues after running top block
Date: Wed, 23 Jul 2014 09:48:20 -0400

On Tue, Jul 22, 2014 at 8:44 AM, Perper <address@hidden> wrote:
Hi all,

I've noticed that "Run to completion" works now in situation when
message passing is used, which is great!
I have a related question. I'm creating a block which uses message
passing, and run it once:

        tb = some_block(fname="file1")
        tb.start()
        tb.wait()

#at this moment tb has still some unprocessed messages in message queues
#so if I run the block again on another file ...

        tb.set_fname("file2")
        tb.start()
        tb.wait()


I can see messages that were result of processing of file1. Do you know
how to avoid this?
One of acceptable solutions can be flushing msg queues after processing
of file1, but I don't know how to achieve this.

Best Regards,
Piotr Krysik

There are still a couple of issues with the message passing, obviously. The proper shutdown of graphs is definitely on our list of things to deal with. We hope to have improvements that cover issues like this by the release of 3.7.5.

Tom

 

reply via email to

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