summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_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>
* Removing unused <cerrno> (and includes found on the way)Marcus Müller2021-01-281-8/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* blocks/message_strobe: Use atomic for thread syncThomas Habets2020-08-141-2/+0
|
* 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-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-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
|
* 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-51/+44
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-2/+2
|\
| * Unbreak boost 1.67. Constrain the delay in message_strobe to integer ↵Peter Horvath2018-07-081-2/+2
| | | | | | | | milliseconds.
* | Boost 1.67 compatibilityilovezfs2018-04-181-1/+1
| |
* | blocks: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-3/+4
|/ | | | | | | | | | | | | | 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.
* Comment typo fixing.luz.paz2018-02-031-1/+1
| | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* Moved setting of d_finished from ctor to start()Marcus Müller2015-04-191-0/+3
| | | | | | | Making the message_strobe able to cope with reconfiguration. Ref: http://lists.gnu.org/archive/html/discuss-gnuradio/2015-04/msg00285.html
* blocks: message strobe shutdown fix.Tom Rondeau2015-03-131-2/+17
| | | | | | | | | On embedded systems, this block's destructure was not getting called in the right order and the flowgraph would hang because this block's thread running run would never quit. Moving the start and stop handling of this thread to the start/stop functions of the block fix this. Also makes sure that the block is only producing messages when the flowgraph is running.
* blocks: switching last calls from boost::thread to gr::thread.Tom Rondeau2014-09-301-4/+4
| | | | | | 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.
* logger: setup logger for the tpb scheduler; fixes a swig issue when logger ↵Tom Rondeau2014-02-161-1/+1
| | | | is not present.
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-4/+4
|
* blocks: moving message blocks to gr-blocks.Tom Rondeau2013-03-061-0/+85
message_burst_source, message_source, message_sink, message_debug, message_strobe.