summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_random_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* blocks: replace ::bind with lambdaMarcus Müller2021-03-201-1/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks/message_strobe: Remove manual memory managementThomas Habets2020-08-141-4/+3
|
* 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
* msg_handler: Use lambdas to set msg handlersJohannes Demel2020-06-041-3/+1
| | | | | 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-3/+4
| | | | | | | 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.
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-011-1/+1
| | | | | | | | | | | | | | | | | | | 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
|
* message_strobe_random: replace boost::random with C++11Marcus Müller2020-01-021-28/+25
|
* message_strobe_random: inexplicable includes removedMarcus Müller2020-01-021-8/+0
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-78/+94
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-5/+5
|\
| * Unbreak boost 1.67. Constrain the delay in message_strobe to integer ↵Peter Horvath2018-07-081-5/+5
| | | | | | | | milliseconds.
* | Boost 1.67 compatibilityilovezfs2018-04-181-1/+1
| |
* | blocks: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-3/+5
|/ | | | | | | | | | | | | | typical usage: message_port_pub(pmt::mp("out_port"), …) which is bad, as it implies hashing of a string, allocation of memory, deallocation, finding the hashed string in the table of interned strings and returning a unique pointer (which for reasons of PMT awesomeness isn't even unique) to the interned port name. Replacing all these port name ad hoc ::mp() calls by reusing one, private, port name member.
* blocks: switching last calls from boost::thread to gr::thread.Tom Rondeau2014-09-301-2/+2
| | | | | | There are a few places where the threads are specifically used by boost::thread calls in the namespace. If we ever move away from using boost's threads, we might have some more specific cleanup to do, but it's not obvious how to easily abstract this further. Addresses Issue # 706.
* 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).
* blocks: random_pdu (speedup, also allow a byte mask), message_strobe_random ↵Tim O'Shea2014-02-161-0/+121
(new block, send messages with a known timing distribution)