[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr_sync_block question
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] gr_sync_block question |
Date: |
Sat, 31 Mar 2012 10:27:33 -0700 |
On Sat, Mar 31, 2012 at 07:52, Tom Rondeau <address@hidden> wrote:
> On Fri, Mar 30, 2012 at 2:58 PM, Josh Blum <address@hidden> wrote:
>> On 03/30/2012 11:23 AM, Nowlan, Sean wrote:
>>> Do objects that extend gr_sync_block *require* that their work
>>> function *always* returns as many items as the scheduler asked in
>>> noutput_items, except for the case when a block may be completely
>>> finished producing items?
>>
>> Returning 0 or -1 will tell the block executor code to stop.
>>
>> -Josh
>
> Just to clarify, a block can legitimately return 0; it just means that
> it didn't produce any output, but it will try again.
To clarify even further--a *source* block that returns 0 samples will
be treated as done, for other blocks it is ok.
Johnathan