compat-common: allow XTaskQueueDispatch to dispatch queued items on serialized and pool ports #370

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

@⁠FilimonEnc on GitHub · 2026-11-24 16:48 UTC · original
FilimonEnc:feat/xtq-dispatch-pool-port → main · +1 −2 · 2 files · 1 commits · closed without merging

In GDK XTaskQueueDispatch, an application thread can manually pump and dispatch queued callbacks from any port (including thread-pool and serialized ports), not solely manual ports.

Previously, q_dispatch rejected non-MANUAL ports by checking p.mode == MANUAL, causing XTaskQueueDispatch to return false without executing queued callbacks when called on a thread-pool or serialized port.

This change allows q_dispatch to call p.dispatch(timeout) regardless of port mode, enabling verify_dispatch_on_pool_port to pass.

**@⁠FilimonEnc** on GitHub · 2026-11-24 16:48 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/370) `FilimonEnc:feat/xtq-dispatch-pool-port` → `main` · +1 −2 · 2 files · 1 commits · closed without merging In GDK `XTaskQueueDispatch`, an application thread can manually pump and dispatch queued callbacks from any port (including thread-pool and serialized ports), not solely manual ports. Previously, `q_dispatch` rejected non-MANUAL ports by checking `p.mode == MANUAL`, causing `XTaskQueueDispatch` to return `false` without executing queued callbacks when called on a thread-pool or serialized port. This change allows `q_dispatch` to call `p.dispatch(timeout)` regardless of port mode, enabling `verify_dispatch_on_pool_port` to pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:20:35 +00:00
github-bot closed this pull request 2026-11-26 06:20:35 +00:00
Author
Owner

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

Thanks. #307 (now applied) makes dispatch work on serialized and thread-pool ports by keeping pool items on the port itself, and still refuses immediate ports. Closing this one as superseded.

**@⁠omonkeyz** on GitHub · 2026-11-25 13:51 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/370#issuecomment-7164400001) Thanks. #307 (now applied) makes dispatch work on serialized and thread-pool ports by keeping pool items on the port itself, and still refuses immediate ports. Closing this one as superseded.

Pull request closed

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