benilla-re systems structs docs

s_asyncWaitProgressCallback

global · client

Address
0x885668 · 4 bytes, up to 0x88566b
Type
void *
Meaning
Points to the progress callback of the async wait, 0 when none is set
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.