summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/buffer.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-10-29 14:19:20 -0400
committerTom Rondeau <tom@trondeau.com>2013-10-29 14:21:15 -0400
commite140069eaa05a0b71bbacb014d596dc218383940 (patch)
treeecaf88321e4a42a12843ff670c9ede600269a668 /gnuradio-runtime/lib/buffer.cc
parent9b9768baefeb995dc4516168287c6f865c92b60a (diff)
runtime: add concept up an automatic update_rate to gr::block.
When enabled, uses nitems_written/nitems_read to update the relative_rate of a block. Useful for blocks that change their relative rate based on activity in the work function. Disabled by default. digital: PFB clock sync blocks set update_rate to True.
Diffstat (limited to 'gnuradio-runtime/lib/buffer.cc')
-rw-r--r--gnuradio-runtime/lib/buffer.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/gnuradio-runtime/lib/buffer.cc b/gnuradio-runtime/lib/buffer.cc
index b266c250c9..b5cc19c35b 100644
--- a/gnuradio-runtime/lib/buffer.cc
+++ b/gnuradio-runtime/lib/buffer.cc
@@ -225,13 +225,7 @@ namespace gr {
buffer::add_item_tag(const tag_t &tag)
{
gr::thread::scoped_lock guard(*mutex());
- if(d_readers.size()) {
- tag_t t = tag;
- d_item_tags.push_back(t);
- }
- else {
- d_item_tags.push_back(tag);
- }
+ d_item_tags.push_back(tag);
}
void