X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Ftw_timer_template.h;h=f77b64e091405c4d43a4afc407cfd6f35911d0a3;hb=757f470aefea09fda41df9cfa713ed16a9b67452;hp=b5cdac05506b103ede4e1bd2fa8acd411b80fb9e;hpb=adb5bd5344cd7b422c0c08e6434ad8642b897502;p=vpp.git diff --git a/src/vppinfra/tw_timer_template.h b/src/vppinfra/tw_timer_template.h index b5cdac05506..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,7 @@ 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);