AddContextToScheduler
function · core · orchestration
- Address
0x4222a0· 579 bytes, up to0x4224e2- Signature
void __thiscall (EvtContext *this)- Meaning
- Gives a context a handle and table entry, makes it due now and puts it in the least-loaded slot
- Confidence
- verified, proof two
- Finding
- core/loop#contexts
Finding: Contexts in core: the frame loop
A context is a 0x214-byte object: a lock at +0x10, run state +0x2c, a heap node +0x30
whose key +0x3c is the due time, the last tick time +0x40, flags +0x44, the idle time
+0x48 and +0x4c, a load cost +0x50 and +0x54, 29 handler lists from +0x5c, and the
message, input, timer and thread state after them. For the client's context the constructor
stores: run state 0, last tick = now, flags 2 (interactive), idle time 1 ms in both fields, cost
1000 in both, and gives it a handle in the context table.
The derivation is in the doc.
Callers 1
Callees 13
- GetElementLinkAt4 core
- UpdateHeapNodeIndex core
- ResiftHeapNode core
- GrowHeapArrayTo core
- LinkNode core
- OsGetAsyncTimeMs core
- SCritSect::Enter storm
- SCritSect::Leave storm
- CSRWLock::Enter storm
- CSRWLock::Leave storm
- SEvent::Set storm
- SInterlockedIncrement storm
- SInterlockedDecrement storm
Calls and jumps by a bare address, from tables/calls.tsv.