Keep XAsync waits on the original operation through cleanup #60
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!60
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-60"
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?
@TaynanGT on GitHub · 2026-11-26 20:12 UTC · original
TaynanGT:fix/xasync-completion-wait→main· +212 −91 · 1 files · 1 commits · merged 2026-11-26 20:18 UTCFollow-up to the XAsync change carried by #57 and discussed in #55. Removing a failed operation before publishing its status left
XAsyncGetStatus(wait=true)spinning on a pending word. A provider that queried its own block in cleanup could wait for itself.The operation stays registered through cleanup. External waiters sleep on its condition variable and receive that operation's result even if the address is reused. A query from its own cleanup returns the pending status immediately. Registry changes check the operation identity before publishing or retiring a result. Providers and completion callbacks run outside the locks.
The regression tests coordinate cleanup and waiting with channels. They also exercise cleanup re-entry and a pending word without a registered operation. Static review, syntax and patch application checks passed. Windows CI is pending.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 20:13 UTC · original · edited 2026-11-26 20:16 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e95a2f5e95a2f5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.