FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ TIMER_SIGNAL

#define TIMER_SIGNAL   SIGALRM

Definition at line 92 of file timer.c.

Function Documentation

◆ f64_to_tv()

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

Definition at line 65 of file timer.c.

◆ sort_timers()

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:

◆ timer_block()

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:

◆ timer_call()

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:

◆ timer_compare()

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:

◆ timer_interrupt()

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:

◆ timer_unblock()

void timer_unblock ( sigset_t *  save)

Definition at line 155 of file timer.c.

Variable Documentation

◆ time_resolution

f64 time_resolution
static

Definition at line 99 of file timer.c.

◆ timers

timer_callback_t* timers
static

Definition at line 61 of file timer.c.