FD.io VPP  v19.04.1-1-ge4a0f9f
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 92 of file timer.c.

Function Documentation

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

Definition at line 65 of file timer.c.

+ Here is the caller graph for this function:

static void sort_timers ( timer_callback_t timers)
inlinestatic

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

+ Here is the caller graph for this function:

static void timer_interrupt ( int  signum)
static

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

+ Here is the caller graph for this function:

Variable Documentation

f64 time_resolution
static

Definition at line 99 of file timer.c.

timer_callback_t* timers
static

Definition at line 61 of file timer.c.