compat-common: return distinct handle on XTaskQueueDuplicateHandle to match GDK reference #367

Closed
github-bot wants to merge 1 commit from gh-pr/367/head into gh-pr/367/base
Owner

@⁠FilimonEnc on GitHub · 2026-11-24 16:42 UTC · original
FilimonEnc:feat/xtq-duplicate-handle-conformance → main · +16 −3 · 2 files · 1 commits · closed without merging

In compat-common::gdk::rt, q_duplicate returned the identical queue handle integer and incremented refcount, whereas the GDK/xgameruntime reference implementation returns distinct handle instances pointing to the same underlying task queue.

Allocate a new duplicate queue handle referencing the same ports and termination state in dup_queue. This enables verify_duplicate_queue_handle to pass without deviation, resolving one of the conformance gaps noted in #211.

**@⁠FilimonEnc** on GitHub · 2026-11-24 16:42 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/367) `FilimonEnc:feat/xtq-duplicate-handle-conformance` → `main` · +16 −3 · 2 files · 1 commits · closed without merging In `compat-common::gdk::rt`, `q_duplicate` returned the identical queue handle integer and incremented refcount, whereas the GDK/xgameruntime reference implementation returns distinct handle instances pointing to the same underlying task queue. Allocate a new duplicate queue handle referencing the same ports and termination state in `dup_queue`. This enables `verify_duplicate_queue_handle` to pass without deviation, resolving one of the conformance gaps noted in #211.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:20:29 +00:00
github-bot closed this pull request 2026-11-26 06:20:29 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-25 13:51 UTC · original

Thanks. This is covered by #307, which is now applied: it hands out a distinct handle for the same queue, so termination and monitors through the duplicate act on the original queue. Closing this one as superseded.

**@⁠omonkeyz** on GitHub · 2026-11-25 13:51 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/367#issuecomment-7164398013) Thanks. This is covered by #307, which is now applied: it hands out a distinct handle for the same queue, so termination and monitors through the duplicate act on the original queue. Closing this one as superseded.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.