Go to the source code of this file.
Data Structures | |
struct | TimerData |
Represents a timer. More... | |
Defines | |
#define | DIFF_TICK(a, b) ((int)((a)-(b))) |
#define | TIMER_FUNC(func) int func(int tid, unsigned int tick, intptr_t id, intptr_t data) |
Declares a timer callback function. | |
Functions | |
void | init_gettick (void) |
unsigned int | gettick_nocache (void) |
int | add_timer (unsigned int tick, int(*func)(int, unsigned int, intptr_t, intptr_t), intptr_t id, intptr_t data) |
Adds a timed callback. | |
int | add_timer_interval (unsigned int tick, int(*func)(int, unsigned int, intptr_t, intptr_t), intptr_t id, intptr_t data, int interval) |
Adds a timed callback that is called every a given interval. | |
int | delete_timer (int id, int(*func)(int, unsigned int, intptr_t, intptr_t)) |
Deletes a timer. | |
unsigned int | addtick_timer (int tid, int added_tick) |
Adds delay into a timer. | |
TimerData * | get_timer (int tid) |
Gets the timer data. | |
int | do_timer (void) |
Executes all timed callback when the conditions are satisfied. | |
int | add_timer_func_list (int(*)(int, unsigned int, intptr_t, intptr_t), char *) |
void | timer_final () |
Variables | |
unsigned int | gettick_cache |
The current tick. |
oa_timer_