Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Typedefs | |
typedef struct Timer | Timer |
Functions | |
void | timers_init (void) |
void | timers_shutdown (void) |
Timer * | gwtimer_create (List *outputlist) |
void | gwtimer_destroy (Timer *timer) |
void | gwtimer_start (Timer *timer, int interval, WAPEvent *event) |
void | gwtimer_stop (Timer *timer) |
Definition at line 224 of file timers.c.
References Timer::elapsed_event, Timer::elapses, Timer::event, gw_assert(), gwlist_add_producer(), Timer::index, initialized, and Timer::output.
void gwtimer_destroy | ( | Timer * | timer | ) |
Definition at line 241 of file timers.c.
References Timer::event, gw_assert(), gwlist_remove_producer(), gwtimer_stop(), initialized, Timer::output, and wap_event_destroy().
Definition at line 254 of file timers.c.
References abort_elapsed(), Timer::elapses, Timer::event, gw_assert(), gwthread_wakeup(), Timerset::heap, heap_adjust(), heap_insert(), Timer::index, initialized, interval, lock(), TimerHeap::tab, Timerset::thread, timers, unlock(), and wap_event_destroy().
Referenced by start_initiator_timer_R(), start_timer_A(), start_timer_R(), and start_timer_W().
void gwtimer_stop | ( | Timer * | timer | ) |
Definition at line 299 of file timers.c.
References abort_elapsed(), Timer::elapses, gw_assert(), Timerset::heap, heap_delete(), Timer::index, initialized, lock(), TimerHeap::tab, timers, and unlock().
Referenced by gwtimer_destroy(), stop_initiator_timer(), and timers_shutdown().
void timers_init | ( | void | ) |
Definition at line 184 of file timers.c.
References gwthread_create, Timerset::heap, heap_create(), initialized, Timerset::mutex, mutex_create, Timerset::stopping, Timerset::thread, timers, and watch_timers().
Referenced by wtp_initiator_init(), and wtp_resp_init().
void timers_shutdown | ( | void | ) |
Definition at line 196 of file timers.c.
References gwthread_join(), gwthread_wakeup(), gwtimer_stop(), Timerset::heap, heap_destroy(), initialized, TimerHeap::len, Timerset::mutex, mutex_destroy(), Timerset::stopping, TimerHeap::tab, Timerset::thread, timers, and warning().
Referenced by wtp_initiator_shutdown(), and wtp_resp_shutdown().