4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 12:13:36 +08:00

Update completion.c

fix: completion wait after, maybe can't clean the flag.
This commit is contained in:
KodakWang 2015-03-24 15:54:08 +08:00
parent 827ff71933
commit 29fd52dfb8

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);