Repository navigation
xgameruntime: unregistering a network callback with wait from inside that callback returns instead of waiting on itself - #8050
Conversation
|
Tested 1874ff4 on Windows 11, CPU only: pass. I built xgameruntime_test in RelWithDebInfo. I ran AI-assisted. |
|
Tested Full AI-assisted (Claude Code); I read the full diff before building. |
|
Tested 1874ff4 merged onto main 867d922 (clean merge) on NVIDIA GeForce RTX 4070, driver 621.24, native Windows 11 Pro 26300, MSVC 14.44.35207, Ninja RelWithDebInfo: pass.
No game data used. AI-assisted (Claude Code). |
|
Tested For this change. Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Under Wine the tree is test by test the same as Because the five were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from |
|
Tested 1874ff4 on RTX 5070 Ti (Blackwell, subgroup 32), NVIDIA 621.01, Windows 11, MSVC 14.44 (VS 2022 17.14 Build Tools), CMake 4.5.1 + Ninja, Vulkan headers fetched, no game copy: pass. I applied the diff to a clone of main at 867d922 (clean git apply), built xgameruntime_test and ran it: exit 0, "xgameruntime_test: OK (145 checks)", including both new cases (unregister with wait from its own callback returns and completes removal; unregister with wait on another thread still waits for the running callback). Negative control: reverting only runtime/shims/xgameruntime.cpp and rebuilding with the PR's test gives exit 1 with "FAIL self-unregister watchdog expired", so the test does catch the self-wait deadlock. Only xgameruntime_test was run, not the full ctest set. AI-assisted (Claude Code): checked by applying the diff to a private clone of main and building and running the tests above. No game data was used. |
Reviewed head: 1874ff4 Review: ItsNotRexed#8050 (comment) Board: ItsNotRexed#8919 AI-assisted integration.
What
Avoid waiting on the current thread when a network notification unregisters itself with wait=true. The callback removes its registration when it returns; another thread still waits for completion.
Why
The previous wait could only finish after the callback returned, causing a deadlock inside that callback.
Tested
@ItsNotRexed: an exe PR, as you asked.
Claim: #7913 (comment)