This commit is contained in:
xiao-mang 2023-08-25 07:35:19 +08:00 committed by GitHub
parent 0354cd83e4
commit c85069f9fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -408,8 +408,9 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
else
t = timeout / (1000 / RT_TICK_PER_SECOND);
}
ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t);
/*When the waiting msg is generated by the application through signaling mechanisms,
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)
{
return SYS_ARCH_TIMEOUT;