Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gwlib/gwlib.h"
Go to the source code of this file.
Typedefs | |
typedef struct Timer | Timer |
typedef struct Timerset | Timerset |
Functions | |
Timerset * | gw_timerset_create (void) |
void | gw_timerset_destroy (Timerset *set) |
void | gw_timerset_elapsed_destroy (Timerset *set) |
long | gw_timerset_count (Timerset *set) |
Timer * | gw_timer_create (Timerset *set, List *outputlist, void(*callback)(void *)) |
void | gw_timer_destroy (Timer *timer) |
void | gw_timer_elapsed_destroy (Timer *timer) |
void | gw_timer_elapsed_destroy_cb (Timer *timer) |
void | gw_timer_start (Timer *timer, int interval, void *data) |
void | gw_timer_elapsed_start (Timer *timer, int interval, void *data) |
void | gw_timer_elapsed_start_cb (Timer *timer, int interval, void *data) |
void | gw_timer_stop (Timer *timer) |
void | gw_timer_elapsed_stop (Timer *timer) |
void | gw_timer_elapsed_stop_cb (Timer *timer) |
List * | gw_timer_break (Timerset *set) |
void * | gw_timer_data (Timer *timer) |
Definition at line 92 of file gw-timer.h.
Definition at line 93 of file gw-timer.h.
Definition at line 501 of file gw-timer.c.
References abort_elapsed(), Timer::elapses, gw_assert(), gwlist_append(), gwlist_create, heap_delete(), Timer::index, lock(), and unlock().
Definition at line 255 of file gw-timer.c.
References Timer::callback, Timer::data, Timer::elapsed_data, Timer::elapses, gwlist_add_producer(), Timer::index, Timer::output, and Timer::timerset.
Referenced by main(), retry_consumer_thread(), and url_result_thread().
void* gw_timer_data | ( | Timer * | timer | ) |
Definition at line 538 of file gw-timer.c.
References Timer::data, and gw_assert().
void gw_timer_destroy | ( | Timer * | timer | ) |
Definition at line 273 of file gw-timer.c.
References gw_timer_stop(), gwlist_remove_producer(), and Timer::output.
void gw_timer_elapsed_destroy | ( | Timer * | timer | ) |
Definition at line 284 of file gw-timer.c.
References gw_timer_elapsed_stop(), gwlist_remove_producer(), and Timer::output.
Referenced by gw_timerset_elapsed_destroy(), http_queue_thread(), and timer_consumer_thread().
void gw_timer_elapsed_destroy_cb | ( | Timer * | timer | ) |
Definition at line 295 of file gw-timer.c.
References gw_timer_elapsed_stop_cb(), gwlist_remove_producer(), and Timer::output.
Referenced by timer_retry_cb().
void gw_timer_elapsed_start | ( | Timer * | timer, |
int | interval, | ||
void * | data | ||
) |
Definition at line 352 of file gw-timer.c.
References Timer::data, Timer::elapsed_data, Timer::elapses, gw_assert(), gwthread_wakeup(), Timerset::heap, heap_adjust(), heap_insert(), Timer::index, interval, lock(), TimerHeap::tab, Timerset::thread, Timer::timerset, and unlock().
Referenced by main(), retry_consumer_thread(), timer_consumer_thread(), and url_result_thread().
void gw_timer_elapsed_start_cb | ( | Timer * | timer, |
int | interval, | ||
void * | data | ||
) |
Definition at line 399 of file gw-timer.c.
References Timer::data, Timer::elapsed_data, Timer::elapses, gw_assert(), gwthread_wakeup(), Timerset::heap, heap_adjust(), heap_insert(), Timer::index, interval, TimerHeap::tab, Timerset::thread, and Timer::timerset.
void gw_timer_elapsed_stop | ( | Timer * | timer | ) |
Definition at line 462 of file gw-timer.c.
References Timer::elapsed_data, Timer::elapses, gw_assert(), Timerset::heap, heap_delete(), Timer::index, lock(), TimerHeap::tab, Timer::timerset, and unlock().
Referenced by gw_timer_elapsed_destroy().
void gw_timer_elapsed_stop_cb | ( | Timer * | timer | ) |
Definition at line 483 of file gw-timer.c.
References Timer::elapsed_data, Timer::elapses, gw_assert(), Timerset::heap, heap_delete(), Timer::index, TimerHeap::tab, and Timer::timerset.
Referenced by gw_timer_elapsed_destroy_cb().
void gw_timer_start | ( | Timer * | timer, |
int | interval, | ||
void * | data | ||
) |
Definition at line 306 of file gw-timer.c.
References abort_elapsed(), Timer::data, Timer::elapses, gw_assert(), gwthread_wakeup(), Timerset::heap, heap_adjust(), heap_insert(), Timer::index, interval, lock(), TimerHeap::tab, Timerset::thread, Timer::timerset, and unlock().
void gw_timer_stop | ( | Timer * | timer | ) |
Definition at line 442 of file gw-timer.c.
References abort_elapsed(), Timer::elapses, gw_assert(), Timerset::heap, heap_delete(), Timer::index, lock(), TimerHeap::tab, Timer::timerset, and unlock().
Referenced by gw_timer_destroy(), and gw_timerset_destroy().
long gw_timerset_count | ( | Timerset * | set | ) |
Timerset* gw_timerset_create | ( | void | ) |
Definition at line 190 of file gw-timer.c.
References gwthread_create, heap_create(), mutex_create, and watch_timers().
Referenced by main().
void gw_timerset_destroy | ( | Timerset * | set | ) |
Definition at line 203 of file gw-timer.c.
References gw_timer_stop(), gwthread_join(), gwthread_wakeup(), heap_destroy(), and mutex_destroy().
Referenced by main().
void gw_timerset_elapsed_destroy | ( | Timerset * | set | ) |
Definition at line 223 of file gw-timer.c.
References gw_timer_elapsed_destroy(), gwthread_join(), gwthread_wakeup(), heap_destroy(), and mutex_destroy().