XTaskQueue: terminating a queue cancels only its own queued callbacks #324
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!324
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-324"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RenzoWit35 on GitHub · 2026-11-24 23:34 UTC · original
RenzoWit35:fix/243-terminate-cancels-only-its-own→main· +68 −4 · 1 files · 1 commits · openFixes #243.
A composite queue shares its ports with the queue they came from.
XTaskQueueTerminatedrainedevery callback queued on those ports, so another queue's pending callbacks ran with
canceled=trueand its next dispatch found nothing. Each queue now has a process-unique id(not its address, which can be reused), delivered callbacks carry it, and terminate cancels
only its own, leaving the rest in FIFO order. Cancellations still run outside the port lock.
Delayed callbacks not yet delivered are #198's case, unchanged here.
Test
terminating_a_composite_queue_leaves_the_base_queues_callbacks: base / composite / basecallbacks on one manual port; terminating the composite cancels only its own; the base then
dispatches its two in order, not canceled, and stays open. Fails on
main.Testing
On Windows 11, MSVC Rust 1.98.1, branch alone on top of
main(2119b0e):cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features, andcargo test --workspace --lockedall pass. The new regression test fails onmainand passes here. All nine fix branches for #242-#250 also pass together when merged.🤖 Generated with Claude Code
@kaayzouee on GitHub · 2026-11-25 01:18 UTC · original
Duplicate of #296?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.