Skip to content

Remove low-level coroutine suspension notifications#1228

Merged
kennykerr merged 3 commits into
microsoft:masterfrom
sylveon:user/sylveon/remote-notify-awaiter
Nov 11, 2022
Merged

Remove low-level coroutine suspension notifications#1228
kennykerr merged 3 commits into
microsoft:masterfrom
sylveon:user/sylveon/remote-notify-awaiter

Conversation

@sylveon

@sylveon sylveon commented Nov 11, 2022

Copy link
Copy Markdown
Contributor

The opposite of #372

Fixes #1219

@sylveon

sylveon commented Nov 11, 2022

Copy link
Copy Markdown
Contributor Author

Tests passed locally...

IAsyncAction NoSuspend_IAsyncAction()
{
co_await resume_after(0s);
co_await 0s;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What does this change have to do with ripping out the low-level hooks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This workaround was added because of the low level hooks preventing Clang from building this code.

So removing resume_after helps make sure that we have coverage for this functionality on Clang.

@kennykerr

Copy link
Copy Markdown
Collaborator

It generally looks good to me, but @oldnewthing made the last few tweaks to coroutine support so I'd appreciate his eyes on this change as well.

@oldnewthing oldnewthing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I never thought we would be rid of this code.

@kennykerr kennykerr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Woot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clang/GCC: Issue with operator co_await and winrt::impl::awaiter_finder

3 participants