[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Disable some paths of the flowgraph without stopping
From: |
Stefan Oltmanns |
Subject: |
[Discuss-gnuradio] Disable some paths of the flowgraph without stopping (C++) |
Date: |
Sun, 5 Nov 2017 00:13:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Hello,
I've got a flowgraph with one source that will end in several sinks. Not
all paths of the flowgraph are needed all the time and I would like to
enable/disable a path without stopping the flowgraph to reduce processor
load.
When I leave a path unconnected by default the application will crash.
I've seen there is a (deprecated) Valve block implemented in Python, but
I'm all C++.
Is there a solution in C++?
If there is not, I could probably write a custom block that could either
just return 0 from work function or copy all data from input to output,
but I don't like the idea of copying the data, is there a way to just
handover the pointer?
Best regards
Stefan
- [Discuss-gnuradio] Disable some paths of the flowgraph without stopping (C++),
Stefan Oltmanns <=