diff options
| author | x2Tweek <x2Tweek@users.noreply.github.com> | 2026-11-22 23:30:33 +0100 |
|---|---|---|
| committer | x2Tweek <x2Tweek@users.noreply.github.com> | 2026-11-22 23:30:33 +0100 |
| commit | ead8072d653f3cb2ea48b7e51ba98b34aba6a2b4 (patch) | |
| tree | b69840d375bf76d0010fad59b437b365c72e9d70 /runtime/shims/process.cpp | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
fix(xgameruntime): publish error callback + context as one consistent pair under a mutex
error_set_callback wrote g_error_context then g_error_callback into two
separate std::atomics, and error_report read them separately, so a
concurrent re-registration could pair one callback with the other's
context (RT-258 on coordination thread #3796). Guard both the read and
the write with std::mutex (already included) so error_report always sees
a consistent callback/context pair.
CPU only, no game files, no GPU. Pattern syntax-checked with g++ -std=c++17 -Wall -Wextra; full MSVC build not available locally.
Fixes RT-258 on coordination thread #3796.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions