Skip to content

Ensure C++/WinRT's resume_foreground always releases the calling thread#307

Merged
kennykerr merged 1 commit into
masterfrom
kennykerr-return
Apr 12, 2019
Merged

Ensure C++/WinRT's resume_foreground always releases the calling thread#307
kennykerr merged 1 commit into
masterfrom
kennykerr-return

Conversation

@kennykerr

Copy link
Copy Markdown
Contributor

It turns out that resume_foreground is being too clever and can introduce deadlocks in some scenarios because it only suspends if not already on the dispatcher thread. This update simply ensures that resumption is always re-queued/dispatched.

@kennykerr kennykerr merged commit 02ca34a into master Apr 12, 2019
@kennykerr kennykerr deleted the kennykerr-return branch April 12, 2019 03:31
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.

2 participants