discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gr_sync_block question


From: Josh Blum
Subject: Re: [Discuss-gnuradio] gr_sync_block question
Date: Fri, 30 Mar 2012 11:58:08 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2


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? What does the scheduler do if the (number
> of items returned) < noutput_items? Does it ever try calling the work
> function again?
> 

You can return any number of items between 1 and noutput_items. The
scheduler will simply call work again with any items that werent
consumed + extra that accumulated into the input buffers in the interim
time.

Returning 0 or -1 will tell the block executor code to stop.

-Josh



reply via email to

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