Pārlūkot izejas kodu

ConcurrentQueue isEmpty

效率
cpf 8 gadi atpakaļ
vecāks
revīzija
2dc259c54d

+ 1 - 1
Server/Model/Other/OneThreadSynchronizationContext.cs

@@ -16,7 +16,7 @@ namespace Model
 
 		public void Update()
 		{
-			while (this.queue.Count > 0)
+			while (!this.queue.IsEmpty)
 			{
 				Action a;
 				if (this.queue.TryDequeue(out a))