HLE/gameinput: write callback token before registration and order blo… #534
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T02:01:10Z.
…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.Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:37:31Z.
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.
Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T09:24:17Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.