mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 04:54:38 +08:00
Added function sys_restart_timeouts() from patch #7085 (Restart system timeout handling)
This commit is contained in:
parent
a668a4e4d1
commit
27c1c7a0f7
@ -19,6 +19,10 @@ HISTORY
|
|||||||
|
|
||||||
++ New features:
|
++ New features:
|
||||||
|
|
||||||
|
2010-02-09: Simon Goldschmidt (Simon Kallweit)
|
||||||
|
* timers.c/.h: Added function sys_restart_timeouts() from patch #7085
|
||||||
|
(Restart system timeout handling)
|
||||||
|
|
||||||
2010-02-09: Simon Goldschmidt
|
2010-02-09: Simon Goldschmidt
|
||||||
* netif.c/.h, removed loopif.c/.h: task #10153 (Integrate loopif into
|
* netif.c/.h, removed loopif.c/.h: task #10153 (Integrate loopif into
|
||||||
netif.c) - loopif does not have to be created by the port any more,
|
netif.c) - loopif does not have to be created by the port any more,
|
||||||
|
@ -402,6 +402,17 @@ sys_check_timeouts(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set back the timestamp of the last call to sys_check_timeouts()
|
||||||
|
* This is necessary if sys_check_timeouts() hasn't been called for a long
|
||||||
|
* time (e.g. while saving energy) to prevent all timer functions of that
|
||||||
|
* period being called.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
sys_restart_timeouts(void)
|
||||||
|
{
|
||||||
|
timeouts_last_time = sys_now();
|
||||||
|
}
|
||||||
|
|
||||||
#else /* NO_SYS */
|
#else /* NO_SYS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,6 +79,7 @@ void sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
|
|||||||
void sys_untimeout(sys_timeout_handler h, void *arg);
|
void sys_untimeout(sys_timeout_handler h, void *arg);
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
void sys_check_timeouts(void);
|
void sys_check_timeouts(void);
|
||||||
|
void sys_restart_timeouts(void);
|
||||||
#else /* NO_SYS */
|
#else /* NO_SYS */
|
||||||
void sys_timeouts_mbox_fetch(sys_mbox_t mbox, void **msg);
|
void sys_timeouts_mbox_fetch(sys_mbox_t mbox, void **msg);
|
||||||
#endif /* NO_SYS */
|
#endif /* NO_SYS */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user