mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 02:21:32 +08:00
Merge pull request #4366 from whj4674672/wqueue
[fix] wait queue flag 赋的值使用宏
This commit is contained in:
commit
8bb2817d35
@ -121,7 +121,7 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec)
|
|||||||
level = rt_hw_interrupt_disable();
|
level = rt_hw_interrupt_disable();
|
||||||
|
|
||||||
__exit_wakeup:
|
__exit_wakeup:
|
||||||
queue->flag = 0;
|
queue->flag = RT_WQ_FLAG_CLEAN;
|
||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
|
|
||||||
rt_wqueue_remove(&__wait);
|
rt_wqueue_remove(&__wait);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user