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 |
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)