benilla-re systems structs docs

s_asyncWaitProgressArgument

global · client

Address
0x8856d8 · 4 bytes, up to 0x8856db
Type
void *
Meaning
Holds the argument the async wait passes to its progress callback
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.