summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/hier_block2_detail.cc
Commit message (Collapse)AuthorAgeFilesLines
* runtime: minor API cleanupMarcus Müller2021-11-191-1/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: Replace stdio logging with loggerDavid Winter2021-10-211-135/+120
| | | | | | | This commit replaces many uses of std::c{out,err} and printf with the appropriate GR_LOG_* directives. Signed-off-by: David Winter <david.winter@analog.com>
* logging: remove <iostream> from logger.h, add where consequently missingMarcus Müller2021-06-171-1/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-011-12/+12
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* delete unused variablesBastian Bloessl2019-09-051-1/+1
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-2/+2
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-598/+577
|
* Merge branch 'master' into nextJohnathan Corgan2017-10-051-7/+10
|\ | | | | | | | | | | | | Conflicts: gr-digital/examples/CMakeLists.txt gr-uhd/lib/usrp_source_impl.cc gr-uhd/lib/usrp_source_impl.h
| * Merge remote-tracking branch 'github/pr/1476' into maintJohnathan Corgan2017-10-051-7/+10
| |\
| | * runtime: Moved block-by-block setup_rpc() calls to the end of the ↵Jacob Gilbert2017-10-041-7/+11
| |/ | | | | | | flatten_aux() function where the blocks are all identified. Also removed a workaround to the simple_copy example that is no longer relevant with this fix
* | Merge branch 'master' into nextJohnathan Corgan2017-01-121-13/+9
|\|
| * cleaned up the way setup_rpc() is called, and now is called for all blocks, ↵Jacob Gilbert2016-11-231-13/+9
| | | | | | | | not just those with stream connections
* | runtime: add interface to get log_level for blocksNathan West2016-08-041-0/+8
| |
* | runtime: expose set_log_level for hier_blocksNathan West2016-08-041-0/+10
|/
* gnuradio-runtime/hier_block2: Allow changing of IO sig in the constructorSylvain Munaut2016-02-031-0/+40
| | | | | | | | | | | | | | | | | | | | | Fixes #719 The issue is that the hier_block2 detail creates some vectors for the in/out ports to hold where to connect them to during the flatten and what the min/max output buffer size are. But subclasses are allowed to change the io signature in their constructor so before actually using those vectors, we recheck if we should update their size. If there is a new io signature with more port, they're initialized to default values (i.e. not connected). And if the new signature has less ports, we just drop the connection (which is fine since it's all in the subclass constructor, before they've been used for anything). In both cases, just using .resize() on the vector is enough. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* runtime: fix hierarchical block message port flattening/GRC usageTim O'Shea2015-12-081-34/+56
|
* Fixed up the int/size_t handling in hb2's new max/min_output... methodsMarcus Müller2015-04-051-2/+3
| | | | | alongside with minor beautifications. Fixes all compile warnings related to signed/unsigned comparison.
* gnuradio-runtume: hier_block2 output buffer lengths - clean up of debug outputBill Clark2015-04-011-16/+44
|
* gnuradio-runtime: modified buffer length types to size_t, moved buffer ↵Bill Clark2015-04-011-11/+47
| | | | length vectors into detail
* gnuradio-runtime: non-helpful debug outputs removed from hier_block2 and ↵Bill Clark2015-04-011-1/+0
| | | | hier_block2_detail
* gnuradio-runtime: (option 1) The hier block can now take a generic min/max ↵Bill Clark2015-04-011-10/+52
| | | | output buffer length and assign it to every block within the hier (assumes all output buffers have the same min/max values set); (option 2) sets only the blocks connected to hier output ports and does not set the other internal blocks (requires that each port has different values); for single port output hier blocks only option 1 is possible.
* gnuradio-runtime: added the individual port assignments to the hier_block2 ↵Bill Clark2015-03-311-0/+35
| | | | max/min_output_buffer size; if output ports have different size assignments only the block directly connected to the output port is changed otherwise every block within the hier is set to that output buffer size; therefore single output hier blocks will always set every block within to the output buffer size
* gnuradio-runtime:: removed the individual port setting on hier_block2, ↵Bill Clark2015-03-311-20/+37
| | | | current operation assuming the buffers are being set for latency and therefore all blocks are being set to a small amount
* gnuradio-runtime: updated hier_block2 and hier_block_detail to allow for ↵Bill Clark2015-03-311-4/+18
| | | | propagation of min/max output buffer to all blocks within the hier
* gnuradio-runtime: trying to see if this will handle the output buffer size ↵Bill Clark2015-03-311-0/+13
| | | | of hier blocks; trying to find the proper casting methods
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-3/+3
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* runtime: fix disconnecting a msg port on a hier_block2Mark Cottrell2013-10-151-4/+31
| | | | | | | | | | | | | | | It seems that when you call msg_connect, the call to message_port_sub is not made until the flowgraph has been flattened, so the subscription does not belong to the hier block, it belongs to the block inside the hier block that has the message output. However, when you call msg_disconnect, it simply attempts to call message_port_unsub on on the hier block, which fails, as the hier block has no subscriptions." The fix simply checks if the source or destination blocks are hierarchical, and if they are, resolves which block in the hierarchical block has the message port, then calls message_port_unsub with that block.
* Merge branch 'maint'Johnathan Corgan2013-08-251-2/+5
|\
| * runtime: fix hier_block2 disconnect_all()Johnathan Corgan2013-08-251-2/+5
| |
* | runtime: added support for setting thread affinity to all blocks under a ↵Tom Rondeau2013-07-171-0/+25
|/ | | | | | | | | | | | | hier_block2. grc: added field to all blocks to set the thread affinity to a list of processors. docs: updated docs on thread affinity for new features. Conflicts: grc/base/Block.py grc/python/flow_graph.tmpl
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-0/+657