diff options
Diffstat (limited to 'src/vppinfra/tw_timer_template.h')
-rw-r--r-- | src/vppinfra/tw_timer_template.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vppinfra/tw_timer_template.h b/src/vppinfra/tw_timer_template.h index 2e41bcac5f8..6b61e424f69 100644 --- a/src/vppinfra/tw_timer_template.h +++ b/src/vppinfra/tw_timer_template.h @@ -175,6 +175,9 @@ typedef struct /** vector of expired timers */ u32 *expired_timer_handles; + + /** maximum expirations */ + u32 max_expirations; } TWT (tw_timer_wheel); u32 TW (tw_timer_start) (TWT (tw_timer_wheel) * tw, @@ -184,7 +187,7 @@ void TW (tw_timer_stop) (TWT (tw_timer_wheel) * tw, u32 handle); void TW (tw_timer_wheel_init) (TWT (tw_timer_wheel) * tw, void *expired_timer_callback, - f64 timer_interval); + f64 timer_interval, u32 max_expirations); void TW (tw_timer_wheel_free) (TWT (tw_timer_wheel) * tw); |