discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Message passing - issue with messages left in queues


From: Perper
Subject: [Discuss-gnuradio] Message passing - issue with messages left in queues after running top block
Date: Tue, 22 Jul 2014 14:44:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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



reply via email to

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