Keep XAsync waits on the original operation through cleanup #60

Manually merged
github merged 1 commit from github-bot/gh-60 into main 2026-11-26 20:21:35 +00:00 AGit
Owner

@⁠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 UTC

Follow-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.

**@⁠TaynanGT** on GitHub · 2026-11-26 20:12 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/60) `TaynanGT:fix/xasync-completion-wait` → `main` · +212 −91 · 1 files · 1 commits · merged 2026-11-26 20:18 UTC Follow-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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:15:59 +00:00
Author
Owner

@⁠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.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T20:14:22.985327Z e95a2f5 PR opened
🔒 Security Review ✅ Completed 2026-11-26T20:16:07.965406Z e95a2f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 20:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/60#issuecomment-7202426501) · edited 2026-11-26 20:16 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"e95a2f536c1dd0df250de2dcfcf5fcba5c140034","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"e95a2f536c1dd0df250de2dcfcf5fcba5c140034","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"e95a2f536c1dd0df250de2dcfcf5fcba5c140034","mergeGateEnabled":false,"pullRequestNumber":60,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T20:14:22.985327Z">2026-11-26T20:14:22.985327Z</relative-time> | `e95a2f5` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-26T20:16:07.965406Z">2026-11-26T20:16:07.965406Z</relative-time> | `e95a2f5` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github manually merged commit 4aaa7a3a8c into main 2026-11-26 20:21:35 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.