Kaynağa Gözat

优化下协程锁

tanghai 2 yıl önce
ebeveyn
işleme
e1b14059c3

+ 2 - 2
Unity/Assets/Scripts/Core/Fiber/Module/CoroutineLock/CoroutineLockQueueType.cs

@@ -40,13 +40,13 @@ namespace ET
             {
                 return;
             }
+
+            queue.Notify(level);
             
             if (queue.Count == 0)
             {
                 self.Remove(key);
             }
-
-            queue.Notify(level);
         }
     }