benilla-re systems structs docs

s_asyncWaitCounters

global · client

Address
0x885658 · 16 bytes, up to 0x885667
Type
uint32_t[4]
Meaning
Holds the array of pending-read counters the async wait adds up: its capacity, count, data and growth step
Confidence
verified, proof one
Finding
glue/enterworld#waiting-for-every-read

Finding: Waiting for every read in glue: entering and leaving the world

0x443d30 blocks until the asynchronous reader is idle. It first adds up the pending counts the registered counters of the array 0x885658 report into a total, then, while a load is pending, services the reader, reports progress through the callback 0x885668 when one is set, as (total − c) / total clamped to [0, 1], c being the dword 0x88567c at that moment, which starts at the total, and sleeps 1 ms. It clears the callback when done. Its two diagnostic lines go to the empty print.

The derivation is in the doc.