diff options
| author | omardev29 <154835571+omardev29@users.noreply.github.com> | 2026-11-22 05:27:50 +0100 |
|---|---|---|
| committer | omardev29 <154835571+omardev29@users.noreply.github.com> | 2026-11-22 12:29:51 +0100 |
| commit | a19602633b7f0e6ff5db7725c89a1bd11c244686 (patch) | |
| tree | ed6e11577e082ae74baed2c3c3ca72f67dc9c997 /runtime/src/pe_loader.cpp | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
tls_host: report thread attach and detach to a callback the loader sets
The Windows loader calls gta6rt_tls_host.dll's DllMain with DLL_THREAD_ATTACH
on every new thread, after it has built the thread's TLS array, and with
DLL_THREAD_DETACH before it frees it. A new export,
gta6rt_tls_host_set_thread_event, lets the loader receive those events, so it
can give each thread the mapped image's TLS. DllMain still touches no TLS (the
helper's own slot is the one the loader swaps); the callback pointer is a plain
global. Nothing registers it yet.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions