17 lines
360 B
C
17 lines
360 B
C
#pragma once
|
|
|
|
/* list of timers, no way to identify them, so no prunability outside of their exhaustion */
|
|
typedef struct timer_list_entry_t {
|
|
int remaining_ms;
|
|
void (*callback) (int);
|
|
struct timer_list_entry_t* next;
|
|
} timer_list_entry ;
|
|
|
|
void timers_add( timer_list_entry *toAdd);
|
|
|
|
void decrease_timers();
|
|
|
|
int timers_isEmpty();
|
|
|
|
int timers_isUpdating();
|