RemoveHeapNodeAt
function · core · orchestration
- Address
0x421f40· 240 bytes, up to0x42202f- Signature
void __thiscall (void *this, uint32_t index)- Meaning
- Removes the node at an index from a heap and sifts the last node into its place
- 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 6
- ReleaseSlot core
- IEvtTimerProcess core
- IEvtTimerKill core
- IEvtTimerCreateA core
- IEvtTimerCreate core
- IEvtTimerCreateB core
Callees 1
- GrowHeapArrayBy core
Calls and jumps by a bare address, from tables/calls.tsv.