benilla-re systems structs docs

s_asyncWaitRemaining

global · client

Address
0x88567c · 4 bytes, up to 0x88567f
Type
uint32_t
Meaning
Holds the reads still pending in the async wait, starting at the total
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.