upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/tls_host.cpp
AgeCommit message (Collapse)Author
13 daystls_host: report thread attach and detach to a callback the loader setsomardev29
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.
14 daysRuntime: install static TLS for mapped imagesKam471