X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Ftw_timer_template.h;h=f77b64e091405c4d43a4afc407cfd6f35911d0a3;hb=b5c0d35f;hp=0217644df6eb9806453858a51c480cab2bb49b5f;hpb=b7f1faa7fbd4575f28766e552a73810c6de0ace3;p=vpp.git diff --git a/src/vppinfra/tw_timer_template.h b/src/vppinfra/tw_timer_template.h index 0217644df6e..f77b64e0914 100644 --- a/src/vppinfra/tw_timer_template.h +++ b/src/vppinfra/tw_timer_template.h @@ -197,9 +197,6 @@ typedef struct /** current tick */ u64 current_tick; - /** first expiration time */ - u64 first_expires_tick; - /** current wheel indices */ u32 current_index[TW_TIMER_WHEELS]; @@ -238,6 +235,9 @@ 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); +int TW (tw_timer_handle_is_free) (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,