EventSetTimer
function · core · orchestration
- Address
0x4200a0· 198 bytes, up to0x420165- Signature
uint32_t __fastcall (uint32_t delay, void *handler, void *argument)- Meaning
- Creates a one-shot timer on the current context and returns its id
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- core/events#timers
Finding: Timers in core: events
EventSetTimer (0x4200a0) takes a delay in milliseconds, a function and an argument, and
returns a timer id for the current context: the last id freed, else the next, at least 1. The
timer is due at now + delay; when the loop's timer phase finds it due, it is removed from the
heap, its id is freed, and its function is called once as fastcall(&{delay · 0.001f, now}, argument) with the lock released. Due timers run in due-time order and the phase reads the clock
once. EventKillTimer (0x4203e0) clears a timer's functions; a timer with none is dropped when
it reaches the heap's top, and its id is freed then.
The derivation is in the doc.
Callers 4
- EventSetTimerWrapper client
- NewWorldHandler client
- 0x402a00 client
- CacheUpdateHandler client
Callees 4
- PropGet base
- IEvtTimerCreate core
- CSRWLock::Enter storm
- CSRWLock::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.