InitScheduler
function · core · orchestration
- Address
0x4219d0· 597 bytes, up to0x421c24- Signature
void __fastcall (uint32_t threads, uint32_t polling)- Meaning
- Builds the slots for a power-of-two thread count, creates slot 0 and starts the extra loop threads
- Confidence
- verified, proof two
- Finding
- core/loop#startup-and-shutdown
Finding: Startup and shutdown in core: the frame loop
WinMain's body calls the library four times. 0x41f550 with one thread and polling off sets up
one scheduler slot; 0x41f5e0 creates the interactive context, with the start handler 0x402840
on category 7 and the stop handler 0x403640 on category 4, each at priority 1000.0; 0x41f5c0
runs the loop on the calling thread until shutdown; 0x41f5a0 frees the library. No other thread
runs a loop.
The derivation is in the doc.
Callers 1
- EventInitialize core
Callees 13
- AcquireSlot core
- GetThreadArrayQuantum core
- RoundUpToMultiple core
- ReallocThreadArray core
- SMemAlloc storm
- SMemFree storm
- SStrPrintf storm
- GetCurrentThreadPriority unassigned
- SCritSect::SCritSect storm
- ZeroHandleSlot storm
- SHandleCloseThunk storm
- SEvent::Reset storm
- SThread::Create storm
Calls and jumps by a bare address, from tables/calls.tsv.