From b39a7c48227eb3969528c46eb200868bd503c43a Mon Sep 17 00:00:00 2001 From: wanghaijing Date: Mon, 22 Feb 2021 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20flag=20=E7=9A=84=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=AE=8F=E7=9A=84=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/src/waitqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);