Skip to content

Commit

Permalink
Access modifier cleanup in Task (#55842)
Browse files Browse the repository at this point in the history
* Update Task.cs

* Update TaskFactory.cs
  • Loading branch information
WizardBrony authored Jul 16, 2021
1 parent d87454c commit 2a1dcfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ internal bool IsWaitNotificationEnabledOrNotRanToCompletion
/// harmful). Derived implementations may choose to only conditionally call down to this base
/// implementation.
/// </summary>
internal virtual bool ShouldNotifyDebuggerOfWaitCompletion // ideally would be familyAndAssembly, but that can't be done in C#
private protected virtual bool ShouldNotifyDebuggerOfWaitCompletion
{
get
{
Expand Down Expand Up @@ -5889,7 +5889,7 @@ public void Invoke(Task completedTask)
/// Returns whether we should notify the debugger of a wait completion. This returns
/// true iff at least one constituent task has its bit set.
/// </summary>
internal override bool ShouldNotifyDebuggerOfWaitCompletion =>
private protected override bool ShouldNotifyDebuggerOfWaitCompletion =>
base.ShouldNotifyDebuggerOfWaitCompletion &&
AnyTaskRequiresNotifyDebuggerOfWaitCompletion(m_tasks);
}
Expand Down Expand Up @@ -6128,7 +6128,7 @@ public void Invoke(Task ignored)
/// Returns whether we should notify the debugger of a wait completion. This returns true
/// iff at least one constituent task has its bit set.
/// </summary>
internal override bool ShouldNotifyDebuggerOfWaitCompletion =>
private protected override bool ShouldNotifyDebuggerOfWaitCompletion =>
base.ShouldNotifyDebuggerOfWaitCompletion &&
AnyTaskRequiresNotifyDebuggerOfWaitCompletion(m_tasks);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ public void Invoke(Task completingTask)
/// Returns whether we should notify the debugger of a wait completion. This returns
/// true iff at least one constituent task has its bit set.
/// </summary>
internal override bool ShouldNotifyDebuggerOfWaitCompletion =>
private protected override bool ShouldNotifyDebuggerOfWaitCompletion =>
base.ShouldNotifyDebuggerOfWaitCompletion &&
AnyTaskRequiresNotifyDebuggerOfWaitCompletion(_tasks);
}
Expand Down Expand Up @@ -1657,7 +1657,7 @@ public void Invoke(Task completingTask)
/// Returns whether we should notify the debugger of a wait completion. This returns
/// true iff at least one constituent task has its bit set.
/// </summary>
internal override bool ShouldNotifyDebuggerOfWaitCompletion =>
private protected override bool ShouldNotifyDebuggerOfWaitCompletion =>
base.ShouldNotifyDebuggerOfWaitCompletion &&
AnyTaskRequiresNotifyDebuggerOfWaitCompletion(_tasks);
}
Expand Down

0 comments on commit 2a1dcfb

Please sign in to comment.