|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] self.set_min_noutput_items() is not a valid python command in gnuradio ? |
Date: | Fri, 07 Mar 2014 11:00:22 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi Activecat,
to answer question 1): grepping for "min_noutput_items" instantly shows that in gnuradio-runtime/lib/block_executor.cc line 299, your block's min_noutput_items() is called every iteration. If there isn't enough space, the block thread sleeps until there is more. So yes, it works on the fly. I remember there was something with returning 0, and I know that producing 0 items used to mark a source as done, but this mechanism was commented out about a year ago (l. 483ff, I think for some good reason), but I can't remember that being an issue for a non-source block; have you tried it and did you run into problems? Greetings, Marcus On 03/07/2014 02:26 AM, Activecat wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |