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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 8 | void *[2] | m_link | Holds the record's link in the record list | verified, proof one | core/threads#engine-thread-records |
0x0008 | 4 | uint32_t | m_threadId | Holds the thread id | verified, proof one | core/threads#engine-thread-records |
0x000c | 4 | void * | m_handle | Holds a duplicate of the thread handle | verified, proof one | core/threads#engine-thread-records |
0x0014 | 4 | void * | m_nameObject | Holds the name object tied to the thread, or null | verified, proof one | core/threads#engine-thread-records |
0x181c | 128 | char[128] | m_name | Holds the display text name [id] | verified, proof one | core/threads#engine-thread-records |