benilla-re systems structs docs

BindNameObjectToThread

function · os

Address
0x4374d0 · 138 bytes, up to 0x437559
Meaning
Ties a name object and the calling thread's record to each other; returns for a null object
Confidence
verified, proof one
Finding
core/threads#context-binding

Finding: Context binding in core: process entry and threads

A context's +0x20c holds a name object or 0. 0x4374d0(object) ties the calling thread's record to it: under the thread lock it stores the record in the object's +0x08 and the object in the record's +0x14. 0x437560(object) clears both. Both return at once for a null object, with no registration, or with no record for the thread. The loop passes +0x20c every iteration and at teardown. The constructor builds the object only when bit 0 of its third argument is set, named Context: interactive = %u, idleTime = %u; the application init 0x402350 passes 0 (0x402812), so these calls do nothing. 0x437300 builds it; 0x437410 frees it.

The derivation is in the doc.

Callers 3

Callees 1

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