[PR #1145] xgameruntime: forward XAsyncBeginAlloc and XTaskQueueIsEmpty to xtaskqueue (OLD-9917) #1178

Open
opened 2026-11-26 20:20:21 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1145
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-9917-xasync-begin-alloc


📝 Commits (1)

  • 877b6d2 Upstream 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

Claimed in the coordination issue as: OLD-9917 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141692121)

What and why

Carries forward old-pr/9917 (draft #185, originally authored by tedin7, commit author preserved; indexed in #17), rebased cleanly onto current main.

Replaces the two private stubs in XThreadingImpl (runtime/shims/xgameruntime.cpp) with direct forwarding to the vendored xtaskqueue implementations:

  • Slot 8 (XAsyncBeginAlloc): forwards to XAsyncBeginAlloc from XAsyncProviderPriv.h, allocating and copying the provider context/parameter block and invoking XAsyncOp::Begin.
  • Slot 28 (XTaskQueueIsEmpty): forwards to XTaskQueueIsEmpty from XTaskQueuePriv.h, taking (queue, port) instead of returning a stub 0.
  • Updates docs/runtime_imports.md to record XTaskQueueIsEmpty's (queue, port) signature and extends runtime/test/xgameruntime_test.cpp to verify both slots end-to-end.

Tested

  • Compiled and ran xgameruntime_test.exe natively on Windows 11 with MSVC (/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2): xgameruntime_test: OK (163 checks).
  • python -I tests/test_docs_links.py: 16 tests, OK.
  • python -I scripts/check_no_game_data.py docs/runtime_imports.md runtime/shims/xgameruntime.cpp runtime/test/xgameruntime_test.cpp: exit 0 (no game data).

GPUs tested: n/a (CPU/OS runtime shim; built and tested on Windows 11 Pro 64-bit, MSVC VS 18)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — xgameruntime shim)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1145 **Author:** [@ambroseautomation](https://github.com/ambroseautomation) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-9917-xasync-begin-alloc` --- ### 📝 Commits (1) - [`877b6d2`](https://github.com/ubiquitarianism/leonida/commit/877b6d234cf5e939e1d0abcfc8b2b675e79c8ba8) Upstream PR #8588: xgameruntime: XAsyncBeginAlloc and XTaskQueueIsEmpty are forwarded to the real task queue ### 📊 Changes **3 files changed** (+34 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `docs/runtime_imports.md` (+1 -1) 📝 `runtime/shims/xgameruntime.cpp` (+4 -21) 📝 `runtime/test/xgameruntime_test.cpp` (+29 -5) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9917 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141692121) ### What and why Carries forward `old-pr/9917` (draft #185, originally authored by `tedin7`, commit author preserved; indexed in #17), rebased cleanly onto current `main`. Replaces the two private stubs in `XThreadingImpl` (`runtime/shims/xgameruntime.cpp`) with direct forwarding to the vendored `xtaskqueue` implementations: - Slot 8 (`XAsyncBeginAlloc`): forwards to `XAsyncBeginAlloc` from `XAsyncProviderPriv.h`, allocating and copying the provider context/parameter block and invoking `XAsyncOp::Begin`. - Slot 28 (`XTaskQueueIsEmpty`): forwards to `XTaskQueueIsEmpty` from `XTaskQueuePriv.h`, taking `(queue, port)` instead of returning a stub `0`. - Updates `docs/runtime_imports.md` to record `XTaskQueueIsEmpty`'s `(queue, port)` signature and extends `runtime/test/xgameruntime_test.cpp` to verify both slots end-to-end. ### Tested - Compiled and ran `xgameruntime_test.exe` natively on Windows 11 with MSVC (`/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2`): `xgameruntime_test: OK (163 checks)`. - `python -I tests/test_docs_links.py`: 16 tests, OK. - `python -I scripts/check_no_game_data.py docs/runtime_imports.md runtime/shims/xgameruntime.cpp runtime/test/xgameruntime_test.cpp`: exit 0 (no game data). GPUs tested: n/a (CPU/OS runtime shim; built and tested on Windows 11 Pro 64-bit, MSVC VS 18) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a — `xgameruntime` shim) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1178
No description provided.