|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Asynchronous source with zeros in between |
Date: | Sun, 6 Dec 2015 15:58:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
I'm a bit curious as to why you'd need a forecast that returns 0 --
basically, there's no input stream, so I'm not quite sure forecast
return values make a difference. Like Tom, I see a bit of a problem with this:
The problem thus is that these are contradicting. Now, there's the old-style message queue approach (which has become somewhat deprecated), which does actually what you want: Offer a thread safe queue to wait on whilst blocking the work() function. Look at the "Message Source" that GRC has to offer, or directly at the gr::blocks::message_source class. Now, that sounds fine, but can't accept messages from the message
passing infrastructure, so what you'd have to do is write a block
with zero in- and output streams, accepting messages, and writing
to the message queue of such an message_source. Best regards, On 01.12.2015 16:45, Tom Rondeau wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |