compat-common: leave async call pending on XAsyncCancel until provider completes it #369
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!369
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/369/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@FilimonEnc on GitHub · 2026-11-24 16:45 UTC · original
FilimonEnc:feat/xtq-xasync-cancel-provider-completion→main· +0 −4 · 2 files · 1 commits · closed without mergingIn
compat-common::gdk::rt,cancel()immediately calledcomplete(block, E_ABORT, 0), which could causeXAsyncOp::Cleanupto execute whileDoWorkis still running on a worker thread. In the GDK/xgameruntime reference model,XAsyncCancelsignalsXAsyncOp::Cancelto the provider and marks the request canceled, leaving the call pending until the provider itself completes or aborts it.Removing the premature
complete()call allowsverify_cancellation,verify_cleanup_waits_for_work, andverify_cleanup_waits_for_work_distributedto pass cleanly against the conformance suite, resolving three conformance gaps noted in #211.@omonkeyz on GitHub · 2026-11-25 13:51 UTC · original
Thanks. #321 (now applied) makes the same XAsyncCancel change and also covers DoWork after cancel and Cleanup ordering, checked against the PC runtime. Closing this one as superseded.
Pull request closed