HLE/gameinput: write callback token before registration and order blo… #534
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!534
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-534"
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?
@pug205gti6 on GitHub · 2026-11-25 02:01 UTC · original
pug205gti6:pr/485-hle-gameinput→main· +156 −14 · 1 files · 1 commits · open…cking enumeration
*out = registration.tokenbefore inserting the callback intostate.callbacksinregister_deviceso no callback invocation (blocking, async, or poll-driven) can observe an uninitialized token or race with the write to*out.State::enumeratingand buffer any concurrentpoll()transitions for those tokens inState::deferred, draining them on the registering thread before clearingenumerating(and dropping them onforget()). This preventspoll()from deliveringDISCONNECTEDahead of or concurrently with initialCONNECTEDenumeration without holdinghub.state()across user callbacks.blocking_enumeration_writes_token_first_and_orders_concurrent_poll.@Revens2 on GitHub · 2026-11-25 07:37 UTC · original
Duplicate of #485: @AscilCH opened this patch 38 minutes earlier, and
gh pr diffreturns the same bytes for both (+156/-14 on 1 file(s), same title).Please continue in #485 so the review history and any test data stay in one place.
Thanks.
@Headache3318 on GitHub · 2026-11-25 09:24 UTC · original
Independent verification: PR #534 merges cleanly onto main (
310c6eb), no conflicts. Build: success (8.04s). Tests: fail due to pre-existing issue (E0433 in victory-loader for console_insn module) — identical failure on main without this PR. PR modifies only crates/victory-hle/src/modules/gameinput.rs (+156/-14) — gameinput callback token ordering fix. PR introduces no new failures. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.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.