From e140069eaa05a0b71bbacb014d596dc218383940 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <tom@trondeau.com>
Date: Tue, 29 Oct 2013 14:19:20 -0400
Subject: 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.
---
 gnuradio-runtime/lib/buffer.cc | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'gnuradio-runtime/lib/buffer.cc')

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
-- 
cgit v1.2.3