|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Block Thread question |
Date: | Tue, 4 Oct 2016 09:44:05 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Jake, yes, that's true: The block_executer practically goes through an endless loop between handling input samples with (general_)work and handling messages with the registered message handler. The whole point of that is that you can send a message that would (logically) change something in the operation of the block, and it will never interfere with the operation of work – thread-safety! (imagine, for example, you changed the number of taps of a FIR filter right in the middle of that filter's operation – that would definitely lead to some unexpected results).
Best regards, Marcus On 10/04/2016 08:09 AM, Gavin Jacobs
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |