FD.io VPP  v16.06
Vector Packet Processing
timer.c File Reference
+ Include dependency graph for timer.c:

Go to the source code of this file.

Data Structures

struct  timer_callback_t
 

Macros

#define TIMER_SIGNAL   SIGALRM
 

Functions

always_inline void f64_to_tv (f64 t, struct timeval *tv)
 
static int timer_compare (const void *_a, const void *_b)
 
static void sort_timers (timer_callback_t *timers)
 
static void timer_interrupt (int signum)
 
void timer_block (sigset_t *save)
 
void timer_unblock (sigset_t *save)
 
void timer_call (timer_func_t *func, any arg, f64 dt)
 

Variables

static timer_callback_ttimers
 
static f64 time_resolution
 

Macro Definition Documentation

#define TIMER_SIGNAL   SIGALRM

Definition at line 81 of file timer.c.

Function Documentation

always_inline void f64_to_tv ( f64  t,
struct timeval *  tv 
)

Definition at line 58 of file timer.c.

+ Here is the caller graph for this function:

static void sort_timers ( timer_callback_t timers)
inlinestatic

Definition at line 78 of file timer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void timer_block ( sigset_t *  save)

Definition at line 132 of file timer.c.

+ Here is the caller graph for this function:

void timer_call ( timer_func_t func,
any  arg,
f64  dt 
)

Definition at line 146 of file timer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int timer_compare ( const void _a,
const void _b 
)
static

Definition at line 70 of file timer.c.

+ Here is the caller graph for this function:

static void timer_interrupt ( int  signum)
static

Definition at line 92 of file timer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void timer_unblock ( sigset_t *  save)

Definition at line 141 of file timer.c.

+ Here is the caller graph for this function:

Variable Documentation

f64 time_resolution
static

Definition at line 88 of file timer.c.

timer_callback_t* timers
static

Definition at line 55 of file timer.c.