mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:20:51 +01:00
[PR #185] xgameruntime: XAsyncBeginAlloc and XTaskQueueIsEmpty are forwarded to the real task queue #236
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#236
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/185
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9917📝 Commits (1)
c06fcf4Upstream PR #8588: xgameruntime: XAsyncBeginAlloc and XTaskQueueIsEmpty are forwarded to the real task queue📊 Changes
3 files changed (+34 additions, -27 deletions)
View changed files
📝
docs/runtime_imports.md(+1 -1)📝
runtime/shims/xgameruntime.cpp(+4 -21)📝
runtime/test/xgameruntime_test.cpp(+29 -5)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.Rebased cleanly on current main; supersedes
#8588closed 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).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.