summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_debug_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* IWYU: iomanip, iostream, sstreamMarcus Müller2021-09-071-1/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks: message_debug: mutex getting the stored message countMarcus Müller2021-03-231-1/+5
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks: message_debug: avoid refcount modification in 'hot' PMT handlingMarcus Müller2021-03-231-8/+10
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks: message_debug: vector indices are size_t, not signed intMarcus Müller2021-03-231-3/+3
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-blocks: deprecate print_pdu port of message_debug blockJacob Gilbert2021-02-251-27/+28
| | | | | | | | | Having two print ports on this block has confused a number of people, most recently issue #4191, and combining them is straightforward and should make this block easier to use. The print_pdu formatting is now be applied on the print port if the message is a PDU. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-blocks: Update message debug error handling on Print PDU portJacob Gilbert2021-02-131-1/+2
| | | | | | Currently non PDU messages get silently dropped. This can mask connection issues; given this is a debug block a WARNing messages seems appropriate Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* blocks: improvements to the message_debug blockJacob Gilbert2020-10-241-35/+58
| | | | aggregates the data to be printed into a stringstream so that it is printed at the same time reducing debug information becoming muddled between competing cout statements. this change also provides an argument to this block to disable the printing of PDU uniform vectors which are often not needed for debug purposes
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-1/+1
| | | | | | | | | | | | | | 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
* msg_handler: Use lambdas to set msg handlersJohannes Demel2020-06-041-7/+4
| | | | | With this commit, all calls to `set_msg_handler` in `gr-blocks` use lambdas. This helps to use `std::function` instead of `boost::function`.
* msg_handler: Switch from boost::function to std::functionJohannes Demel2020-06-041-4/+7
| | | | | | | This commit is a first stab at moving from `boost::function` to `std::function`. For now, it does only update gr-blocks. Also, this requires more testing. If others can confirm that this change works, I'll continue to update all modules.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Remove newlines from exception messagesThomas Habets2020-01-011-1/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-72/+58
|
* blocks: fix incorrect use of items/bytes in PDU handlingJacob Gilbert2016-02-081-1/+1
| | | | | | | | | | | For a uniform vector, calls to pmt::length return the number of items in in the vector. However, in some places this was being treated as a byte value, resulting in short writes and other misinterpretations. These calls have been replaced with calls to pmt::blob_length, to unambiguously get the length in bytes, then converted if necessary to item values.
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-2/+2
| | | | 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: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-4/+4
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-011-2/+2
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* blocks: removing blocks moved into gr-blocks:Tom Rondeau2013-03-061-6/+6
| | | | message_strobe, message_debug, message_source, message_sink, message_burst_source, peak_detector, moving_average.
* blocks: moving message blocks to gr-blocks.Tom Rondeau2013-03-061-0/+120
message_burst_source, message_source, message_sink, message_debug, message_strobe.