benilla-re systems structs docs

EventCreateBackgroundContext

function · core · unreached

Address
0x41f600 · 35 bytes, up to 0x41f622
Meaning
Creates a context through 0x41f5e0 with idle time 500 ms, or 1 when the argument is nonzero
Confidence
inferred
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 0

None by a direct call or jump.

Callees 1

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