benilla-re systems structs docs

SetThreadPropContext

function · base

Address
0x41db50 · 13 bytes, up to 0x41db5c
Meaning
Stores a property array pointer in the calling thread's slot, null clearing it
Confidence
verified, proof one
Finding
core/threads#thread-properties

Finding: Thread properties in core: process entry and threads

Each thread that runs a context carries a property array of 19 dwords. The TLS slot 0x883e68 holds its address. 0x41db50(array) stores the pointer in the slot, null clearing it; 0x41db60 returns it; 0x41db90(i) returns element i of the calling thread's array, 0 without one; 0x41dbb0(i, value) stores element i. 0x41db30 allocates an array and 0x41db70 frees one. The loop makes a context current by storing its array (+0x208) in the slot and its handle in element 0, and clears the slot after the tick; EventGetCurrentContext (0x41f6e0) returns element 0. 0x41dae0 creates the TLS slot and 0x41db00 frees it.

The derivation is in the doc.

Callers 8

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.