Skip to content

Commit

Permalink
优化下协程锁
Browse files Browse the repository at this point in the history
  • Loading branch information
egametang committed Dec 12, 2023
1 parent 0782c09 commit e1b1405
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public static void Notify(this CoroutineLockQueueType self, long key, int level)
{
return;
}

queue.Notify(level);

if (queue.Count == 0)
{
self.Remove(key);
}

queue.Notify(level);
}
}

Expand Down

0 comments on commit e1b1405

Please sign in to comment.