mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
timers: add core locking assertion to tcp_timer_needed (task #14780)
This commit is contained in:
parent
53499f5e9f
commit
1c7a024297
@ -147,6 +147,8 @@ tcpip_tcp_timer(void *arg)
|
|||||||
void
|
void
|
||||||
tcp_timer_needed(void)
|
tcp_timer_needed(void)
|
||||||
{
|
{
|
||||||
|
LWIP_ASSERT_CORE_LOCKED();
|
||||||
|
|
||||||
/* timer is off but needed again? */
|
/* timer is off but needed again? */
|
||||||
if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
|
if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
|
||||||
/* enable and start timer */
|
/* enable and start timer */
|
||||||
|
Loading…
Reference in New Issue
Block a user