RegisterEngineThread
function · os
- Address
0x437060· 377 bytes, up to0x4371d8- Meaning
- Registers the calling thread: counts it, makes its record with id, handle and name, and links it
- Confidence
- verified, proof one
- Finding
- core/threads#engine-thread-records
Finding: Engine thread records in core: process entry and threads
0x437060(name) registers the calling thread. Under the thread lock it counts the registration
and allocates the TLS slot for the first; a record already in the slot is unlinked and freed. The
new 0x189c-byte record holds the thread id at +0x08, a duplicate of the thread handle at +0x0c
and the text name [id] at +0x181c, and goes in the TLS slot and at the end of the record list.
0x4371e0 undoes it: it empties the slot, zeroes the bound object's +0x08, closes the handle,
unlinks and frees the record, and frees the slot when the count reaches 0.
The derivation is in the doc.
Callers 2
Callees 8
- OsTlsAlloc unassigned
- OsTlsGetValue unassigned
- OsTlsSetValue os
- 0x437c30 os
- 0x437c60 os
- SMemAlloc storm
- SMemFree storm
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.