diff options
| author | zhuyunfan <[email protected]> | 2021-03-10 07:28:54 +0800 |
|---|---|---|
| committer | zhuyunfan <[email protected]> | 2021-03-10 07:28:54 +0800 |
| commit | 7e66867e2b63958fa4af35f781daaf31b524a676 (patch) | |
| tree | 67244882a0f41a0982a0f85e4ef4657230c69d81 /components/drivers/src/waitqueue.c | |
| parent | 9bc18ebfaf4ffe98f9eb11b46ece20e9007b4feb (diff) | |
| parent | d9b8984398d1c424a78a840d9159399145f986a0 (diff) | |
Merge branch 'master' of https://gitee.com/zyf96420/rt-thread
Diffstat (limited to 'components/drivers/src/waitqueue.c')
| -rw-r--r-- | components/drivers/src/waitqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/waitqueue.c b/components/drivers/src/waitqueue.c index 02240edbdf..4f7cd32989 100644 --- a/components/drivers/src/waitqueue.c +++ b/components/drivers/src/waitqueue.c @@ -121,7 +121,7 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec) level = rt_hw_interrupt_disable(); __exit_wakeup: - queue->flag = 0; + queue->flag = RT_WQ_FLAG_CLEAN; rt_hw_interrupt_enable(level); rt_wqueue_remove(&__wait); |
