|
From: | schneider |
Subject: | Re: [Discuss-gnuradio] Calling produce()/consume() multiple times |
Date: | Sun, 19 Nov 2017 17:37:23 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 19/11/17 17:22, rear1019 wrote: > I have a question regarding the usage of produce() and consume(): Is it > safe to call these functions multiple times? Or must the calls be > merged into a single one? consume() in the end calls buffer_reader::update_read_pointer(int nitems) which again calls index_add() Looking at the code I'd say consume(a+b) is equivalent to consume(a) + consume(b). You can find the source for these things in the gnuradio-runtime/ directory. It is pretty straight forward code. I'll leave produce() as an exercise for you ;) Regards schneider
[Prev in Thread] | Current Thread | [Next in Thread] |