|
From: | Martin Luelf |
Subject: | Sending out messages on block shutdown |
Date: | Tue, 22 Sep 2020 11:30:00 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Dear list,I have a custom frame sync block that takes a stream of complex samples as inputs (output signature is 0,0) and outputs PDU messages if frames were found. When the upstream block is done I would still like to send out a few messages (flushing an internal buffer), before shutting down the block and signaling the subscribed block that we are done.
With GNURadio 3.7 I sent out these messages in the stop() method followed by an PMT EOF object, which worked great.
Now I finally ported my block to 3.8 and noticed that the messages send out during the stop() call are no longer received by the subscribed block.
Is there a way to find out that the call to the work function is going to be the last call, or is there another way of learning that the block is being stopped at a time where the subscribed block is still listening for messages?
Yours Martin
[Prev in Thread] | Current Thread | [Next in Thread] |