User talk:Chew351

From fd.io
Jump to: navigation, search

usage of timer wheel

Hi vpp,

  I want to start a persistent timer,
  Can I call tw_timer_start in tw_timer_expire_timers callback functions like following:
  ...
  tw_timer_expire_timers_callback(tw, handle){
       tw_timer_start(tw, handle) 
  }
  ...
  while(1){
       tw_timer_expire_timers(tw);
  }


Thanks chew