Make _cyclic_ timers interval more deterministic - next timeout is calculated from last due time instead of relative to current time

This eliminates the cyclic timer jitter
This commit is contained in:
Dirk Ziegelmeier
2018-01-05 13:45:51 +01:00
parent 2b4dde84e3
commit eaca067c7d
3 changed files with 100 additions and 62 deletions

View File

@@ -116,6 +116,7 @@ void sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg);
#if LWIP_TESTMODE
struct sys_timeo** lwip_sys_timers_get_next_timout(void);
void lwip_cyclic_timer(void *arg);
#endif
#endif /* LWIP_TIMERS */