Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

local_timer.c File Reference

#include "timer.h"
#include "timer_funcs.h"
#include "dprint.h"
#include "tcp_conn.h"
#include "mem/mem.h"
#include "compiler_opt.h"
#include "local_timer.h"

Go to the source code of this file.

Functions

int init_local_timer (struct local_timer *t, ticks_t crt_ticks)
void destroy_local_timer (struct local_timer *lt)
int _local_timer_dist_tl (struct local_timer *h, struct timer_ln *tl, ticks_t delta)
void local_timer_redist (struct local_timer *l, ticks_t t, struct timer_head *h)
int _local_timer_add (struct local_timer *h, ticks_t t, struct timer_ln *tl)
int local_timer_add (struct local_timer *h, struct timer_ln *tl, ticks_t delta, ticks_t crt_ticks)
void local_timer_del (struct local_timer *h, struct timer_ln *tl)
void local_timer_list_expire (struct local_timer *l, ticks_t t, struct timer_head *h)
void local_timer_expire (struct local_timer *h, ticks_t t)
void local_timer_run (struct local_timer *lt, ticks_t saved_ticks)


Function Documentation

int _local_timer_add struct local_timer h,
ticks_t  t,
struct timer_ln tl
[inline, static]
 

Definition at line 126 of file local_timer.c.

References _local_timer_dist_tl(), timer_ln::expire, timer_ln::initial_timeout, and ticks_t.

Referenced by local_timer_add(), and local_timer_list_expire().

int _local_timer_dist_tl struct local_timer h,
struct timer_ln tl,
ticks_t  delta
[inline, static]
 

Definition at line 84 of file local_timer.c.

References _timer_add_list, timer_ln::expire, timer_lists::expired, timer_lists::h0, H0_BITS, H0_ENTRIES, H0_MASK, timer_lists::h1, H1_BITS, H1_ENTRIES, H1_H0_MASK, timer_lists::h2, L_WARN, likely, LOG, local_timer::timer_lst, and unlikely.

Referenced by _local_timer_add(), and local_timer_redist().

void destroy_local_timer struct local_timer lt  ) 
 

Definition at line 73 of file local_timer.c.

int init_local_timer struct local_timer t,
ticks_t  crt_ticks
 

Definition at line 51 of file local_timer.c.

References _timer_init_list, DBG, and H2_ENTRIES.

int local_timer_add struct local_timer h,
struct timer_ln tl,
ticks_t  delta,
ticks_t  crt_ticks
 

Definition at line 145 of file local_timer.c.

References _local_timer_add(), DBG, F_TIMER_ACTIVE, timer_ln::flags, timer_ln::initial_timeout, L_CRIT, LOG, timer_ln::next, timer_ln::prev, and unlikely.

void local_timer_del struct local_timer h,
struct timer_ln tl
 

Definition at line 177 of file local_timer.c.

References _timer_rm_list, DBG, F_TIMER_ACTIVE, timer_ln::flags, likely, timer_ln::next, timer_ln::prev, and unlikely.

void local_timer_expire struct local_timer h,
ticks_t  t
[inline, static]
 

Definition at line 225 of file local_timer.c.

References timer_lists::h0, H0_BITS, H0_MASK, timer_lists::h1, H1_BITS, H1_H0_MASK, timer_lists::h2, local_timer_list_expire(), local_timer_redist(), local_timer::timer_lst, and unlikely.

Referenced by local_timer_run().

void local_timer_list_expire struct local_timer l,
ticks_t  t,
struct timer_head h
[inline, static]
 

Definition at line 198 of file local_timer.c.

References _local_timer_add(), _timer_rm_list, timer_ln::data, timer_ln::f, timer_ln::initial_timeout, timer_ln::next, timer_head::next, timer_ln::prev, and ticks_t.

Referenced by local_timer_expire(), and local_timer_run().

void local_timer_redist struct local_timer l,
ticks_t  t,
struct timer_head h
[inline, static]
 

Definition at line 106 of file local_timer.c.

References _local_timer_dist_tl(), _timer_init_list, timer_ln::expire, and timer_foreach_safe.

Referenced by local_timer_expire().

void local_timer_run struct local_timer lt,
ticks_t  saved_ticks
 

Definition at line 247 of file local_timer.c.

References timer_lists::expired, L_CRIT, local_timer_expire(), local_timer_list_expire(), LOG, local_timer::prev_ticks, local_timer::timer_lst, and unlikely.


Generated on Thu Jul 29 04:15:55 2010 for SIPExpressRouter by  doxygen 1.3.9.1