Repository navigation
Conversation
XTaskQueueDispatch returned false for a SerializedThreadPool port even when a callback was queued. The Windows runtime runs that callback on the caller, so claim one queued item the same way a manual port does and leave the pool worker to drain the rest. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Fixes #2948; the earlier #2806 with the same change is closed and nothing on main does it. The diff matches the issue's native-runtime observation (an explicit XTaskQueueDispatch on a SerializedThreadPool port claims one queued callback on the caller, the worker keeps draining the rest), and the test pins exactly that. No problems found in the diff; it conflicts with main's later taskqueue.rs changes (#1154 and others) and needs a rebase. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 2b2e0a3, diff read, not a merge-check; draft, conflicts with main,
Fine: no deadlock inside XCL. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Fixes #2948.
XTaskQueueDispatchreturned false for aSerializedThreadPoolport even when a callback was queued. The Windows runtime runs that callback on the caller. Claim one queued item the same way a manual port does, and leave the pool worker to drain the rest one at a time.What is in it
crates/xcl/src/hle/xgameruntime/taskqueue.rs: serialized ports share the manual queue path,dispatchaccepts that mode, and a test that one explicit call runs the next callback on the callerTested
cargo test -p xcl --lib hle::xgameruntime::taskqueue::tests -- --test-threads=4: 11 passed, 0 failedRegression run
crates/xcl/srcoutside tests changed.Not tested
cargo test --workspacescripts/smoke.ps1on a retail titleAI use