PopDueContext
function · core · orchestration
- Address
0x421430· 303 bytes, up to0x42155e- Signature
EvtContext * __fastcall (uint32_t slot)- Meaning
- Removes and returns the root of a slot's heap, the context due soonest, or null
- Confidence
- verified, proof two
- Finding
- core/loop#the-loop
- Test
core::heap_pop_min_matches_binary
Finding: The loop in core: the frame loop
0x420c00 waits for the start gate, names its thread Engine <id> and registers it. Each
iteration then restores the thread priority saved at startup, leaves the loop when the shutdown
event is set, takes the context due soonest, and sleeps on the slot's event for the time until
that context is due, or forever when none is. When the sleep ends by timeout, it runs one tick
(One tick); when it is woken early, it only reschedules. A context in run state 1 is torn down
instead of rescheduled. On exit it releases its slot, which tears down every context left in it.
The derivation is in the doc.
Callers 2
- SchedulerThreadProc core
- SchedulerWorkerLoop core
Callees 3
- GrowHeapArrayBy core
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.