Skip to content

Commit

Permalink
Fixed naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jul 10, 2024
1 parent 02cf59e commit fa54607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ internal void Invoke()

private LinkedTaskNode? firstTask, lastTask;

private void AddNode(LinkedTaskNode node)
private void AddCompletedTaskNode(LinkedTaskNode node)
{
Debug.Assert(Monitor.IsEntered(SyncRoot));
Debug.Assert(node is { Task: { IsCompleted: true } });
Debug.Assert(node is { Task.IsCompleted: true });

if (lastTask is null)
{
Expand All @@ -86,7 +86,7 @@ private void AddNode(LinkedTaskNode node)

private ManualResetCompletionSource? EnqueueCompletedTask(LinkedTaskNode node)
{
AddNode(node);
AddCompletedTaskNode(node);

if (--scheduledTasksCount is 0U && completionRequested && completedAll is not null)
completedAll.TrySetResult();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void Submit(ReadOnlySpan<T> tasks, bool complete = false, object? userDat
{
if (task.IsCompleted)
{
AddNode(new(task) { UserData = userData });
AddCompletedTaskNode(new(task) { UserData = userData });
scheduledTasksCount--;
completionDetected = true;
}
Expand Down

0 comments on commit fa54607

Please sign in to comment.