summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/throttle_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* blocks: Throttle consume-only modeMarcus Müller2021-07-191-3/+7
| | | | | | | | | When throttling a sample flow, it's not necessary to produce items at the desired average rate - consuming them at a limited rate suffices to slow down the processing of the whole flow graph just as well, and avoids a copy. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* 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
* gr-blocks: copy samples before sleeping in throttleClayton Smith2020-02-041-5/+6
|
* gr-blocks: use monotonic clock for throttleClayton Smith2020-02-041-15/+13
| | | | | | To ensure that the throttle block operates normally even if the system clock changes, I've switched it to use std::chrono::steady_clock, which is a monotonic clock.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Use C++11 ranged for and ranged insert instead of manual loopsThomas Habets2019-12-041-4/+3
|
* Use emplace_back(params) instead of push_back(type(params))Marcus Müller2019-08-221-4/+4
| | | | | | | | | | | | | | | | | | | This is C++11: you can convert std::vector<complextype> vec; vec.push_back(complextype(foo, bar, baz)); by std::vector<complextype> vec; vec.emplace_back(foo, bar, baz); which saves one unnecessary copy. This mostly happened in rpc code. The automated clang-tidy check failed miserably, so most of this was done by hand.
* 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-98/+95
|
* Warn when the throttlers sleep time variable overflowsHarm te Hennepe2015-03-041-1/+7
|
* blocks: throttle resets the timer state when the topblock starts each block, ↵Tom Rondeau2014-09-301-0/+8
| | | | | | including during a lock/unlock restart. Addresses issue #649.
* blocks: throttle block now looks for rx_rate tag and updates the throttle ↵Tim O'Shea2013-11-271-4/+22
| | | | rate accordingly. A new block parameter can tell the block to ignore these tags; set to True by default.
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-4/+4
|
* ctrlport: readding setup_rpc to throttle block that got lost in the transition.Tom Rondeau2013-03-011-0/+20
|
* blocks: adding threshold, strech, and throttle to gr-blocks.Tom Rondeau2013-02-241-0/+97