From c7143b9592b75d83a8a1db2f77cbe10bc1b286f4 Mon Sep 17 00:00:00 2001 From: guoweikang Date: Wed, 16 Oct 2024 10:51:25 +0800 Subject: [PATCH] modify wq to mut Signed-off-by: guoweikang --- modules/axtask/src/wait_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/axtask/src/wait_queue.rs b/modules/axtask/src/wait_queue.rs index 85e4969844..c95618e86d 100644 --- a/modules/axtask/src/wait_queue.rs +++ b/modules/axtask/src/wait_queue.rs @@ -155,7 +155,7 @@ impl WaitQueue { if axhal::time::wall_time() >= deadline { break; } - let wq = self.queue.lock(); + let mut wq = self.queue.lock(); if condition() { timeout = false; break;