4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:51:33 +08:00

Merge pull request #3494 from greed-island/event

Update ipc.c
This commit is contained in:
Bernard Xiong 2020-05-30 09:43:21 +08:00 committed by GitHub
commit 423270936a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1186,6 +1186,11 @@ rt_err_t rt_event_recv(rt_event_t event,
{
/* no waiting */
thread->error = -RT_ETIMEOUT;
/* enable interrupt */
rt_hw_interrupt_enable(level);
return -RT_ETIMEOUT;
}
else
{