Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TplEventSource.TaskWaitContinuation* events #46304

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Dec 21, 2020

TaskWaitContinuationComplete and TaskWaitContinuationStarted have mismatching checks between the event declaration and the IsEnabled check for them.

Both TaskWaitContinuationStarted and TaskWaitContinuationComplete are declared as an event with keyword Keywords.TaskStops but it is being checked with a keyword Keywords.Tasks.

I believe the correct way is to declare TaskWaitContinuationStarted event with Keywords.Tasks instead of Keywords.TaskStops, and change IsEnabled check to use Keywords.TaskStops for TaskWaitContinuationComplete.

@@ -373,7 +373,7 @@ public void TaskWaitContinuationComplete(int TaskID)
/// </summary>
/// <param name="TaskID">The task ID.</param>
[Event(TASKWAITCONTINUATIONSTARTED_ID,
Level = EventLevel.Verbose, Keywords = Keywords.TaskStops)]
Level = EventLevel.Verbose, Keywords = Keywords.Tasks)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth double-checking whether this is going to break any tooling in Visual Studio, i.e. that Tasks is being specified in addition to TaskStops.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do. Thanks!

@sywhang sywhang merged commit cb8a5ed into dotnet:master Jan 5, 2021
@sywhang sywhang deleted the dev/suwhang/fix-tpl-eventsource branch January 5, 2021 18:14
@ghost ghost locked as resolved and limited conversation to collaborators Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants