From adb5bd5344cd7b422c0c08e6434ad8642b897502 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 22 Jun 2018 15:29:38 -0700 Subject: tw: add light weight timer update function Because it avoids pool putting/getting the timer, this function is somewhat faster than stopping and restarting a timer. Change-Id: Id99ed9d356b0b1f7e12facfe8da193e1cd30b3ec Signed-off-by: Florin Coras --- src/vppinfra/tw_timer_template.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vppinfra/tw_timer_template.h') diff --git a/src/vppinfra/tw_timer_template.h b/src/vppinfra/tw_timer_template.h index 0217644df6e..b5cdac05506 100644 --- a/src/vppinfra/tw_timer_template.h +++ b/src/vppinfra/tw_timer_template.h @@ -238,6 +238,8 @@ u32 TW (tw_timer_start) (TWT (tw_timer_wheel) * tw, u32 pool_index, u32 timer_id, u64 interval); void TW (tw_timer_stop) (TWT (tw_timer_wheel) * tw, u32 handle); +void TW (tw_timer_update) (TWT (tw_timer_wheel) * tw, u32 handle, + u64 interval); void TW (tw_timer_wheel_init) (TWT (tw_timer_wheel) * tw, void *expired_timer_callback, -- cgit 1.2.3-korg