timers: add core locking assertion to tcp_timer_needed (task #14780)

This commit is contained in:
Our Air Quality 2018-01-02 12:13:29 -06:00 committed by Joel Cunningham
parent 53499f5e9f
commit 1c7a024297

View File

@ -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 */