summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/sptr_magic.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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-12/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-39/+29
|
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-1/+1
|
* gnuradio-runtime: Fix sptr magic when exception thrown in hier2 constructorSylvain Munaut2016-01-271-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-0/+72