[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Changing Flowgraph at runtime
From: |
Marcus Müller |
Subject: |
Re: [Discuss-gnuradio] Changing Flowgraph at runtime |
Date: |
Wed, 06 Aug 2014 15:16:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
I think Sylvain put his finger on a slightly painful place here:
I think you might not be very clear about the idea what "destruction of
a block" actually means.
So, the most interesting question here is:
Why would you manually want to destroy a block?
Greetings,
Marcus
On 06.08.2014 15:02, Sylvain Munaut wrote:
>> The creation and destruction of blocks at runtime must be made between
>> lock() and unlock(). Is it right?
>> How can I destroy a block at runtime? block->stop()?
>> Do I also need a reset() in sptr [block.reset()]?
>
> Well, you never really destroy blocks yourself since all you get is sptr.
>
> So once it's disconnected and you "loose" the last sptr you have to
> it, then it should get deleted.
>
> Cheers,
>
> Sylvain
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio