FD.io VPP  v18.07-34-g55fbdb9
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 88 of file timer.c.

Function Documentation

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

Definition at line 61 of file timer.c.

+ Here is the caller graph for this function:

static void sort_timers ( timer_callback_t timers)
inlinestatic

Definition at line 83 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 141 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 159 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 74 of file timer.c.

+ Here is the caller graph for this function:

static void timer_interrupt ( int  signum)
static

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

+ Here is the caller graph for this function:

Variable Documentation

f64 time_resolution
static

Definition at line 95 of file timer.c.

timer_callback_t* timers
static

Definition at line 57 of file timer.c.