#include "../../timer.h"
#include "lock.h"


Go to the source code of this file.
Data Structures | |
| struct | timer |
| struct | timer_link |
| struct | timer_table |
Defines | |
| #define | MIN_TIMER_VALUE 2 |
Typedefs | |
| typedef struct timer_link | timer_link_type |
| typedef struct timer | timer_type |
Enumerations | |
| enum | lists { FR_TIMER_LIST, FR_INV_TIMER_LIST, WT_TIMER_LIST, DELETE_LIST, RT_T1_TO_1, RT_T1_TO_2, RT_T1_TO_3, RT_T2, NR_OF_TIMER_LISTS } |
Functions | |
| void | free_timer_table (void) |
| struct timer_table * | get_timertable (void) |
| void | init_timer_list (enum lists list_id) |
| void | reset_timer (struct timer_link *tl) |
| void | reset_timer_list (enum lists list_id) |
| void | set_1timer (struct timer_link *new_tl, enum lists list_id, utime_t *ext_timeout) |
| void | set_timer (struct timer_link *new_tl, enum lists list_id, utime_t *ext_timeout) |
| void | timer_routine (unsigned int, void *) |
| struct timer_table * | tm_init_timers (void) |
| void | unlink_timer_lists (void) |
| void | utimer_routine (utime_t, void *) |
Variables | |
| int | timer_group [NR_OF_TIMER_LISTS] |
| unsigned int | timer_id2timeout [NR_OF_TIMER_LISTS] |
Definition in file modules/tm/timer.h.
| #define MIN_TIMER_VALUE 2 |
| typedef struct timer_link timer_link_type |
| typedef struct timer timer_type |
| enum lists |
| FR_TIMER_LIST | |
| FR_INV_TIMER_LIST | |
| WT_TIMER_LIST | |
| DELETE_LIST | |
| RT_T1_TO_1 | |
| RT_T1_TO_2 | |
| RT_T1_TO_3 | |
| RT_T2 | |
| NR_OF_TIMER_LISTS |
Definition at line 50 of file modules/tm/timer.h.
| void free_timer_table | ( | void | ) |
Definition at line 563 of file modules/tm/timer.c.
References shm_free.
Referenced by tm_shutdown().
| struct timer_table* get_timertable | ( | void | ) | [read] |
| void init_timer_list | ( | enum lists | list_id | ) |
Definition at line 583 of file modules/tm/timer.c.
References init_timerlist_lock(), and reset_timer_list().
Referenced by tm_init_timers().
| void reset_timer | ( | struct timer_link * | tl | ) |
Definition at line 812 of file modules/tm/timer.c.
References timer_link::deleted, and LM_DBG.
Referenced by cancel_invite(), cleanup_localcancel_timers(), cleanup_uac_timers(), final_response_handler(), reply_received(), retransmission_handler(), and t_release_transaction().
| void reset_timer_list | ( | enum lists | list_id | ) |
Definition at line 569 of file modules/tm/timer.c.
References timer::first_tl, timer::last_tl, timer_link::next_tl, NULL, timer_link::prev_tl, timer_link::time_out, and timer_table::timers.
Referenced by init_timer_list(), and unlink_timer_lists().
| void set_1timer | ( | struct timer_link * | new_tl, | |
| enum lists | list_id, | |||
| utime_t * | ext_timeout | |||
| ) |
Definition at line 883 of file modules/tm/timer.c.
References get_ticks(), get_uticks(), insert_timer_unsafe(), LM_CRIT, lock, timer::mutex, NR_OF_TIMER_LISTS, timer_link::time_out, timeout, timer_id2timeout, timer_id2type, timer_table::timers, unlock, and UTIME_TYPE.
Referenced by put_on_wait().
| void set_timer | ( | struct timer_link * | new_tl, | |
| enum lists | list_id, | |||
| utime_t * | ext_timeout | |||
| ) |
Definition at line 837 of file modules/tm/timer.c.
References DETACHED_LIST, get_ticks(), get_uticks(), insert_timer_unsafe(), LM_CRIT, LM_DBG, lock, timer::mutex, NR_OF_TIMER_LISTS, remove_timer_unsafe(), timeout, timer_id2timeout, timer_id2type, timer_link::timer_list, timer_table::timers, unlock, and UTIME_TYPE.
Referenced by _set_fr_retr(), delete_cell(), reply_received(), and retransmission_handler().
| void timer_routine | ( | unsigned | int, | |
| void * | ||||
| ) |
Definition at line 995 of file modules/tm/timer.c.
References check_and_split_time_list(), delete_handler(), DELETE_LIST, final_response_handler(), FR_INV_TIMER_LIST, FR_TIMER_LIST, id, RT_T1_TO_1, run_handler_for_each, timer_table::timers, wait_handler(), and WT_TIMER_LIST.
| struct timer_table* tm_init_timers | ( | void | ) | [read] |
Definition at line 487 of file modules/tm/timer.c.
References DELETE_LIST, FR_INV_TIMER_LIST, FR_TIMER_LIST, timer::id, init_timer_list(), LM_ERR, MIN_TIMER_VALUE, NR_OF_TIMER_LISTS, RT_T1_TO_1, RT_T1_TO_2, RT_T1_TO_3, RT_T2, shm_malloc(), timer_id2timeout, timer_table::timers, and WT_TIMER_LIST.
Referenced by mod_init().
| void unlink_timer_lists | ( | void | ) |
Definition at line 462 of file modules/tm/timer.c.
References DELETE_LIST, timer::first_tl, free_cell(), get_dele_timer_payload, timer::last_tl, LM_DBG, timer_link::next_tl, NR_OF_TIMER_LISTS, reset_timer_list(), and timer_table::timers.
Referenced by tm_shutdown().
| void utimer_routine | ( | utime_t | , | |
| void * | ||||
| ) |
Definition at line 1024 of file modules/tm/timer.c.
References check_and_split_time_list(), id, NR_OF_TIMER_LISTS, retransmission_handler(), RT_T1_TO_1, RT_T1_TO_2, RT_T1_TO_3, RT_T2, run_handler_for_each, and timer_table::timers.
Referenced by mod_init().
| int timer_group[NR_OF_TIMER_LISTS] |
Definition at line 138 of file modules/tm/timer.c.
Referenced by init_timerlist_lock(), and lock_initialize().
| unsigned int timer_id2timeout[NR_OF_TIMER_LISTS] |
Definition at line 149 of file modules/tm/timer.c.
Referenced by set_1timer(), set_timer(), t_next_contacts(), and tm_init_timers().
1.5.6