summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/thread
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Replace boost::any with std::any"Josh Morman2021-11-061-0/+1
| | | | This reverts commit ccd28dfbb1504fdc29db267acd8aa3354fe10cd2.
* Replace boost::any with std::anyMarcus Müller2021-10-281-1/+0
| | | | | | | | This is a modernization possible through C++17 Fixes #4780 Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* runtime: cleaning up unspecific/mistaken boost dependenciesMarcus Müller2021-06-221-1/+2
| | | | 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>
* runtime: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-131-3/+10
|
* runtime: Remove most manual memory managementThomas Habets2020-04-111-2/+3
| | | | | | The remaining ones: * `pmt_pool.cc`, which is a memory allocator so that makes sense * the tricky and aptly named `sptr_magic.cc`.
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-011-2/+2
| | | | | | | | | | | | | | | | | | | 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-273-37/+3
|
* Add a top_block parameter to control exception handlingScott Torborg2020-01-051-8/+23
| | | | | | | | | This restores past behavior where the scheduler catches exceptions raised in block threads, allowing flowgraphs to continue running after the failure of an individual block. It also adds optional new behavior, selected by setting catch_exceptions=False to the top block, which causes exceptions to not be caught. In this mode of operation, a std::terminate handler can be installed to print a stack trace before the flowgraph exits.
* Remove catch statements from thread_body_wrapper.hPaul Wicks2020-01-051-9/+6
| | | | | | | | | | This commit removes the catch statements from thread_body_wrapper.h. The reason to do this is that, as-is, a single block in a flowgraph may throw an exception and stop functioning, but the only indication of this to the user is printing the exception's what() to stderr. With this patch, any uncaught exception will call std::terminate, which should still print the exception's what(), but will also terminate the process, rather than leaving a zombie flowgraph.
* clang-format: Ordering all the includesMarcus Müller2019-08-092-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-093-155/+147
|
* Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
|\
| * Comment typo fixing.luz.paz2018-02-031-1/+1
| | | | | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | Merge branch 'master' into nextJohnathan Corgan2017-04-281-0/+4
|\|
| * runtime: add barrier to synchronize block startupAndrej Rode2017-04-231-0/+4
| |
* | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
|/ | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* 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).
* Merge branch 'maint'Tom Rondeau2014-04-251-6/+2
|\
| * runtime: enable thread priority, same as with Linux; fix header comments to ↵Michael Dickens2014-04-241-6/+2
| | | | | | | | this effect
* | runtime: added ability to name threads, TPB scheduler automatically names ↵Balint Seeber2014-04-041-0/+3
|/ | | | each block's thread
* runtime: adding thread priority methods to gr::blockTim O'Shea2013-06-051-0/+12
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-294-0/+293