discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Scheduler Issues with Branch Prediction


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] Scheduler Issues with Branch Prediction
Date: Wed, 17 Jul 2013 11:29:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

On 07/17/2013 10:48 AM, Ron Sadlier wrote:

> I'm still having this problem, even after creating the simplest flow
> graph possible:
> 
> File source -> Throttle (val = 1) -> Terminal Sink.
> 
> Terminal sink has the following code:
> const unsigned char *inputByte = (const unsigned char *)input_items[0];
> std::cerr << (unsigned char)inputByte[0];
> consume_each(1);
> return 1;

What parent class are you deriving your "Terminal Sink" block from?
Normally, you don't call consume_each() in anything but a block derived
from gr::block directly. Otherwise, the other parent classes take care
of this for you, based on the return value of work().

-- 
Johnathan Corgan
Corgan Labs - SDR Training and Development Services
http://corganlabs.com

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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