Commit Graph

4 Commits

Author SHA1 Message Date
6c2f31e61e fix(xtaskqueue): harden wait registration lifetime and dispatch
(cherry picked from commit 4129a8ae9508c88b96301b6422d3131525e1d02d)
2026-11-22 21:59:14 -03:00
aac68ca651 fix(xtaskqueue): prevent reentrant context enumeration deadlocks
Replace AtomicVector context visits with cursor-based enumeration and safe pinning. Add deterministic reentrancy and concurrent attach/detach regression tests.

Compatibility: contexts without the private pinning capability are rejected. Win32 WaitRegistration lifetime issues remain outside this commit.
(cherry picked from commit d808cfb538d8a65e24b42a86b89afd22d497b14b)
2026-11-22 21:59:14 -03:00
c93b8ea8c6 feat(xtaskqueue): add safe context pinning capability
(cherry picked from commit 2381f5c749b7e284535ad5614a27101a98751de5)
2026-11-22 21:59:14 -03:00
36bc1200ad Runtime: offline xgameruntime shim (XGameRuntime, XSystem, XTaskQueue, XAsync)
Every GDK title calls XGameRuntimeInitialize first and builds its async work on
XTaskQueue/XAsync. Add an xgameruntime.dll shim table for those, ahead of the
executable: XGameRuntimeInitialize/Uninitialize (reference counted),
XSystemGetDeviceType (Series X; LEONIDA_DEVICE_TYPE overrides) and
XSystemGetConsoleId (placeholder), plus the 23 XTaskQueue/XAsync functions.

XTaskQueue/XAsync come from microsoft/libHttpClient (MIT), copied unmodified
into third_party/xtaskqueue (task queue only, no HTTP stack); a small pch.h
stand-in lets them build alone. xgameruntime_test drives the table through
the shim registry the way a title boots. Nothing goes online.
2026-11-21 23:06:10 +01:00