benilla-re systems structs docs

UpdateHeapNodeIndex

function · core · orchestration

Address
0x421840 · 25 bytes, up to 0x421858
Signature
void __thiscall (void *this, uint32_t index)
Meaning
Stores the heap and the index in the node at an index
Confidence
verified, proof two
Finding
core/loop#scheduler-heap

Finding: Scheduler heap in core: the frame loop

Each slot keeps its contexts in a binary min-heap ordered by due time, compared as (int32)(a − b) ≤ 0, so due times may wrap. Taking the root moves the last element down, choosing the right child when it is not later than the left. Timers use the same heap code and comparator.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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