Skip to content

Commit

Permalink
Correct style of LimitedConcurrencyTaskScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Jun 15, 2015
1 parent 1661011 commit e09c57b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SyncTrayzor/Utils/LimitedConcurrencyTaskScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected sealed override void QueueTask(Task task)
if (this.delegatesQueuedOrRunning < this.maxDegreeOfParallelism)
{
++this.delegatesQueuedOrRunning;
NotifyThreadPoolOfPendingWork();
this.NotifyThreadPoolOfPendingWork();
}
}
}
Expand Down Expand Up @@ -98,7 +98,7 @@ protected sealed override bool TryExecuteTaskInline(Task task, bool taskWasPrevi
if (taskWasPreviouslyQueued)
{
// Try to run the task.
if (TryDequeue(task))
if (this.TryDequeue(task))
return base.TryExecuteTask(task);
else
return false;
Expand Down

0 comments on commit e09c57b

Please sign in to comment.