fix lwip (#7969)
This commit is contained in:
parent
0354cd83e4
commit
c85069f9fc
|
@ -408,8 +408,9 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
|
||||||
else
|
else
|
||||||
t = timeout / (1000 / RT_TICK_PER_SECOND);
|
t = timeout / (1000 / RT_TICK_PER_SECOND);
|
||||||
}
|
}
|
||||||
|
/*When the waiting msg is generated by the application through signaling mechanisms,
|
||||||
ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t);
|
only by using interruptible mode can the program be made runnable again*/
|
||||||
|
ret = rt_mb_recv_interruptibale(*mbox, (rt_ubase_t *)msg, t);
|
||||||
if(ret != RT_EOK)
|
if(ret != RT_EOK)
|
||||||
{
|
{
|
||||||
return SYS_ARCH_TIMEOUT;
|
return SYS_ARCH_TIMEOUT;
|
||||||
|
|
Loading…
Reference in New Issue