Explorar o código

ConcurrentQueue isEmpty

效率
cpf %!s(int64=8) %!d(string=hai) anos
pai
achega
2dc259c54d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Server/Model/Other/OneThreadSynchronizationContext.cs

+ 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))