[fix] the overflow problem of lwip rx thread mailbox.

This commit is contained in:
liuxianliang 2021-03-26 10:04:37 +08:00
parent a3b12cb77c
commit adaa45eebe
3 changed files with 34 additions and 34 deletions

View File

@ -648,7 +648,7 @@ static void eth_rx_thread_entry(void* parameter)
}
/* receive all of buffer */
while (1)
do
{
if(device->eth_rx == RT_NULL) break;
@ -664,7 +664,7 @@ static void eth_rx_thread_entry(void* parameter)
}
}
else break;
}
}while(rt_mb_recv(&eth_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
}
else
{

View File

@ -697,7 +697,7 @@ static void eth_rx_thread_entry(void* parameter)
}
/* receive all of buffer */
while (1)
do
{
if(device->eth_rx == RT_NULL) break;
@ -713,7 +713,7 @@ static void eth_rx_thread_entry(void* parameter)
}
}
else break;
}
}while(rt_mb_recv(&eth_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
}
else
{

View File

@ -699,7 +699,7 @@ static void eth_rx_thread_entry(void* parameter)
}
/* receive all of buffer */
while (1)
do
{
if(device->eth_rx == RT_NULL) break;
@ -715,7 +715,7 @@ static void eth_rx_thread_entry(void* parameter)
}
}
else break;
}
}while(rt_mb_recv(&eth_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
}
else
{