4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 00:27:19 +08:00

[DeviceDriver] Fix the flag clean issue in completion IPC.

This commit is contained in:
Bernard Xiong 2015-05-05 10:17:48 +08:00
parent 8cd254b08f
commit bd2d62a1df

View File

@ -95,10 +95,10 @@ rt_err_t rt_completion_wait(struct rt_completion *completion,
result = thread->error;
level = rt_hw_interrupt_disable();
/* clean completed flag */
completion->flag = RT_UNCOMPLETED;
}
}
/* clean completed flag */
completion->flag = RT_UNCOMPLETED;
__exit:
rt_hw_interrupt_enable(level);