summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/hier_block2.cc
Commit message (Collapse)AuthorAgeFilesLines
* runtime: minor API cleanupMarcus Müller2021-11-191-1/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-171-1/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* C++14: Use std::make_unique instead of boost::make_uniqueMarcus Müller2021-01-041-2/+2
| | | | | | Also, clean up includes Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-2/+2
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* runtime: Remove most manual memory managementThomas Habets2020-04-111-2/+4
| | | | | | The remaining ones: * `pmt_pool.cc`, which is a memory allocator so that makes sense * the tricky and aptly named `sptr_magic.cc`.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-6/+9
|
* 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-200/+160
|
* runtime: add interface to get log_level for blocksNathan West2016-08-041-0/+6
|
* runtime: expose set_log_level for hier_blocksNathan West2016-08-041-0/+6
|
* gnuradio-runtime: Fix sptr magic when exception thrown in hier2 constructorSylvain Munaut2016-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #528 Previously, if an exception is thrown in constructor of a hier_block2 subclass, then : - The hier_block2 base destructor _will_ be called - The actual object is destroyed - But the initial sptr would be left in the static map and point to an invalid object - Whatever connection() were made might have an invalid sptr ref as well So to fix this: - In the hier_block2 destructor, we explicitely disconnect() everything - In the base hier_block2 destructor, we call a new 'cancel sptr' method that will check if this object is still in the static map or not - If it's not: Then this is a legit call to the destructor by shared_ptr and everything is fine - If it's: Then there was an isue and the object is already being destroyed and we need to make sure shared_ptr doesn't try to do it again. We do this using a special 'disarmable' custom deleter. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* Fixed up the int/size_t handling in hb2's new max/min_output... methodsMarcus Müller2015-04-051-43/+35
| | | | | 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-2/+0
|
* gnuradio-runtime: modified buffer length types to size_t, moved buffer ↵Bill Clark2015-04-011-33/+33
| | | | length vectors into detail
* gnuradio-runtime: non-helpful debug outputs removed from hier_block2 and ↵Bill Clark2015-04-011-9/+0
| | | | hier_block2_detail
* gnuradio-runtime: (option 1) The hier block can now take a generic min/max ↵Bill Clark2015-04-011-4/+17
| | | | 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/+18
| | | | 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-37/+47
| | | | current operation assuming the buffers are being set for latency and therefore all blocks are being set to a small amount
* gnuradio-runtime: trying to see if this will handle the output buffer size ↵Bill Clark2015-03-311-1/+64
| | | | of hier blocks; trying to find the proper casting methods
* runtime: adds ability to output flowgraph in dot format (resolves issue 245).Johannes Schmitz2014-03-071-0/+7
|
* runtime: added support for setting thread affinity to all blocks under a ↵Tom Rondeau2013-07-171-0/+18
| | | | | | | | | | | | | 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/+160