FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
TWT Struct Reference
+ Collaboration diagram for TWT:

Public Member Functions

 TWT (tw_timer) *timers
 Timer pool. More...
 

Data Fields

u32 next
 next, previous pool indices More...
 
u32 prev
 
union {
   struct {
   } 
 
}; 
 
u32 user_handle
 user timer handle More...
 
f64 next_run_time
 Next time the wheel should run. More...
 
f64 last_run_time
 Last time the wheel ran. More...
 
f64 ticks_per_second
 Timer ticks per second. More...
 
f64 timer_interval
 Timer interval, also needed to avoid fp divide in speed path. More...
 
u64 current_tick
 current tick More...
 
u32 current_index [TW_TIMER_WHEELS]
 current wheel indices More...
 
tw_timer_wheel_slot_t w [TW_TIMER_WHEELS][TW_SLOTS_PER_RING]
 wheel arrays More...
 
void(* expired_timer_callback )(u32 *expired_timer_handles)
 expired timer callback, receives a vector of handles More...
 
u32expired_timer_handles
 vectors of expired timers More...
 
u32 max_expirations
 maximum expirations More...
 

Detailed Description

Definition at line 118 of file tw_timer_template.h.

Constructor & Destructor Documentation

◆ TWT()

TWT::TWT ( tw_timer  )

Timer pool.

Field Documentation

◆ @605

union { ... }

◆ current_index

u32 TWT::current_index[TW_TIMER_WHEELS]

current wheel indices

Definition at line 201 of file tw_timer_template.h.

◆ current_tick

u64 TWT::current_tick

current tick

Definition at line 198 of file tw_timer_template.h.

◆ expired_timer_callback

void(* TWT::expired_timer_callback) (u32 *expired_timer_handles)

expired timer callback, receives a vector of handles

Definition at line 216 of file tw_timer_template.h.

◆ expired_timer_handles

u32* TWT::expired_timer_handles

vectors of expired timers

Definition at line 219 of file tw_timer_template.h.

◆ last_run_time

f64 TWT::last_run_time

Last time the wheel ran.

Definition at line 189 of file tw_timer_template.h.

◆ max_expirations

u32 TWT::max_expirations

maximum expirations

Definition at line 222 of file tw_timer_template.h.

◆ next

u32 TWT::next

next, previous pool indices

Definition at line 121 of file tw_timer_template.h.

◆ next_run_time

f64 TWT::next_run_time

Next time the wheel should run.

Definition at line 186 of file tw_timer_template.h.

◆ prev

u32 TWT::prev

Definition at line 122 of file tw_timer_template.h.

◆ ticks_per_second

f64 TWT::ticks_per_second

Timer ticks per second.

Definition at line 192 of file tw_timer_template.h.

◆ timer_interval

f64 TWT::timer_interval

Timer interval, also needed to avoid fp divide in speed path.

Definition at line 195 of file tw_timer_template.h.

◆ user_handle

u32 TWT::user_handle

user timer handle

Definition at line 148 of file tw_timer_template.h.

◆ w

wheel arrays

Definition at line 204 of file tw_timer_template.h.


The documentation for this struct was generated from the following file: