benilla-re systems structs docs

OsThreadRecord

struct · os · 6300 bytes

Meaning
Holds a registered thread: its list link, id, handle, bound name object and display name
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.

Fields 5

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_linkHolds the record's link in the record listverified, proof onecore/threads#engine-thread-records
0x00084uint32_tm_threadIdHolds the thread idverified, proof onecore/threads#engine-thread-records
0x000c4void *m_handleHolds a duplicate of the thread handleverified, proof onecore/threads#engine-thread-records
0x00144void *m_nameObjectHolds the name object tied to the thread, or nullverified, proof onecore/threads#engine-thread-records
0x181c128char[128]m_nameHolds the display text name [id]verified, proof onecore/threads#engine-thread-records