summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/delay_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-09-17 15:32:44 -0400
committerTom Rondeau <tom@trondeau.com>2013-10-29 12:21:42 -0400
commitf3f5a5ae0ae0093277494b2380a77c8eed439035 (patch)
treeda68cfb94397c80d018c8e9e206de8742cbdf913 /gr-blocks/lib/delay_impl.cc
parent4d71f048b2cb2ded5e4527559770a0d371d969f5 (diff)
runtime: for blocks with a group delay, tag location should be moved according to the delay. Since group delay is often unknown, we have added a new function set_group_delay to allow the user to set the value once delay is calculated.
Also added ability to set the tag propagation delay, which is required for how the blocks::delay works.
Diffstat (limited to 'gr-blocks/lib/delay_impl.cc')
-rw-r--r--gr-blocks/lib/delay_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-blocks/lib/delay_impl.cc b/gr-blocks/lib/delay_impl.cc
index 197aa66977..9d377fb1e6 100644
--- a/gr-blocks/lib/delay_impl.cc
+++ b/gr-blocks/lib/delay_impl.cc
@@ -72,6 +72,7 @@ namespace gr {
gr::thread::scoped_lock l(d_mutex_delay);
int old = dly();
set_history(d+1);
+ set_tag_propagation_delay(d);
d_delta += dly() - old;
}
}