Skip to content

Conversation

@jialongcheng
Copy link
Contributor

We already have IsMainThreadBlocked and IsMainThreadMaybeBlocked. Both APIs indicate whether the main thread is blocked by the caller.

Sometimes we need to know whether the main thread is blocked by anyone using JoinableTaskFactory's several blocked APIs. This change exposes that property.

Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Thanks for preparing this. I think you're close.

@jialongcheng jialongcheng requested a review from AArnott April 28, 2022 16:52
@jialongcheng jialongcheng requested a review from AArnott April 29, 2022 22:29
@AArnott AArnott added this to the v17.3 milestone May 3, 2022
@AArnott AArnott merged commit 553c404 into microsoft:main May 3, 2022
AArnott added a commit to AArnott/vs-threading that referenced this pull request Jun 15, 2022
…blocking calls on the main thread (microsoft#1026)"

This reverts commit 553c404.
AArnott added a commit that referenced this pull request Jun 16, 2022
…blocking calls on the main thread (#1026)" (#1055)

This reverts commit 553c404.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants