xgameruntime: XAsyncBeginAlloc and XTaskQueueIsEmpty are forwarded to the real task queue #185

Open
github-bot wants to merge 1 commit from github-bot/gh-185 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:37 UTC · original
ubiquitarianism:old-pr/9917 → main · +34 −27 · 3 files · 1 commits · draft

Carried over from old PR 9917 by tedin7 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9917, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
tedin7: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

@ItsNotRexed: an exe PR, as you asked.

Rebased cleanly on current main; supersedes #8588 closed during org migration.

What

XThreadingImpl slot 8 (XAsyncBeginAlloc) and slot 28 (XTaskQueueIsEmpty) forward to the real task queue instead of answering E_NOTIMPL / 0. Slot 8 starts the provider once with a separate 16-byte context holding the copied parameter bytes; slot 28 reports the real state of the queue port. The runtime_imports.md row now says slot 28 takes a queue and a port.

Why

On main slot 28 always answers 0 ("empty"), so a caller polling a queue with queued work is told it is idle, and slot 8 refuses a call the task queue library can run.

Tested

Cross-built with clang-cl 19 + lld-link (xwin SDK 10.0.26100), run under Wine: xgameruntime_test: OK, 163 checks, 0 failures.
Negative control: same new test file against main's xgameruntime.cpp: 4 of 162 checks fail (slot 28 idle port empty, slot 28 completion empty while work is queued, slot 8 begins the provider, slot 8 context with copied parameter block).

AI-assisted (Claude Code).

**@⁠Andretuta** on GitHub · 2026-11-24 02:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/185) `ubiquitarianism:old-pr/9917` → `main` · +34 −27 · 3 files · 1 commits · draft > Carried over from **old PR 9917** by `tedin7` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9917`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `tedin7`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): `@ItsNotRexed`: an exe PR, as you asked. Rebased cleanly on current main; supersedes `#8588` closed during org migration. ## What XThreadingImpl slot 8 (XAsyncBeginAlloc) and slot 28 (XTaskQueueIsEmpty) forward to the real task queue instead of answering E_NOTIMPL / 0. Slot 8 starts the provider once with a separate 16-byte context holding the copied parameter bytes; slot 28 reports the real state of the queue port. The runtime_imports.md row now says slot 28 takes a queue and a port. ## Why On main slot 28 always answers 0 ("empty"), so a caller polling a queue with queued work is told it is idle, and slot 8 refuses a call the task queue library can run. ## Tested Cross-built with clang-cl 19 + lld-link (xwin SDK 10.0.26100), run under Wine: `xgameruntime_test`: OK, 163 checks, 0 failures. Negative control: same new test file against main's xgameruntime.cpp: 4 of 162 checks fail (slot 28 idle port empty, slot 28 completion empty while work is queued, slot 8 begins the provider, slot 8 context with copied parameter block). AI-assisted (Claude Code).
Squashed from ItsNotRexed/Leonida#8588 by tedin7, head e09f0a9bd (security scan PASS).

Applied as the PR's own diff (gh pr diff); head matches the watcher's scan. xgameruntime_test keeps Wave 1's per-thread time-sensitive flag checks (#7957); the old slot-8 comment that preceded this PR's new slot-8 test is dropped.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:48:00 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/185/head:github-bot/gh-185'
git switch 'github-bot/gh-185'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-185'
git switch 'github-bot/gh-185'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-185'
git switch 'github-bot/gh-185'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-185'
git switch 'main'
git merge --squash 'github-bot/gh-185'
git switch 'main'
git merge --ff-only 'github-bot/gh-185'
git switch 'main'
git merge 'github-bot/gh-185'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.