From 94c82b2df0258b81ef81dce2b0a496af3ba039ea Mon Sep 17 00:00:00 2001 From: fantasticbin Date: Tue, 3 Dec 2024 10:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BB=B6=E8=BF=9F=E9=98=9F?= =?UTF-8?q?=E5=88=97=E7=9A=84=E4=BB=A3=E7=A0=81=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lock_free/delay_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lock_free/delay_queue.go b/lock_free/delay_queue.go index d7d9cda..169aa14 100644 --- a/lock_free/delay_queue.go +++ b/lock_free/delay_queue.go @@ -18,7 +18,7 @@ func (q *DelayLkQueue[T]) ContinuousDequeue(notify ...chan T) { for { value, ok := q.Dequeue() if !ok { - time.Sleep(time.Millisecond) // 自旋 + time.Sleep(time.Millisecond) // 队列为空,休眠1毫秒 continue } for _, n := range notify {