FD.io VPP  v16.12-rc0-308-g931be3a
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

static 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 87 of file timer.c.

Function Documentation

static void f64_to_tv ( f64  t,
struct timeval *  tv 
)
inlinestatic

Definition at line 60 of file timer.c.

+ Here is the caller graph for this function:

static void sort_timers ( timer_callback_t timers)
inlinestatic

Definition at line 82 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 140 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 158 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 73 of file timer.c.

+ Here is the caller graph for this function:

static void timer_interrupt ( int  signum)
static

Definition at line 99 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 150 of file timer.c.

+ Here is the caller graph for this function:

Variable Documentation

f64 time_resolution
static

Definition at line 94 of file timer.c.

timer_callback_t* timers
static

Definition at line 56 of file timer.c.