diff options
| author | Meco Jianting Man <[email protected]> | 2021-03-09 21:11:14 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-09 21:11:14 +0800 |
| commit | 6f32f7cad53d5142ae3057e7cbca1884995d6631 (patch) | |
| tree | fe7c983aeddf2c8064b071c5f997c8405b97fead /components/drivers/src/waitqueue.c | |
| parent | ce86058201432e865b8d7c4096b3675642a43a42 (diff) | |
| parent | d9b8984398d1c424a78a840d9159399145f986a0 (diff) | |
Merge pull request #25 from RT-Thread/master
pr
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); |
