소스 검색

Change to ConcurrentQueue.

BDisp 9 달 전
부모
커밋
782325f6b7
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs

+ 3 - 1
Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs

@@ -1,5 +1,7 @@
 #nullable enable
 
+using System.Collections.Concurrent;
+
 namespace Terminal.Gui;
 
 /// <summary>
@@ -95,5 +97,5 @@ public class EscSeqRequests
     }
 
     /// <summary>Gets the <see cref="EscSeqReqStatus"/> list.</summary>
-    public Queue<EscSeqReqStatus> Statuses { get; } = new ();
+    public ConcurrentQueue<EscSeqReqStatus> Statuses { get; } = new ();
 }