AsyncFileReadThread
function · client · host
- Address
0x443360· 435 bytes, up to0x443512- Signature
uint32_t __stdcall (void *arg)- Meaning
- Reads each queued file, ten tries each, and queues it as finished, waiting on the work event until stop
- Confidence
- verified, proof one
- Finding
- glue/enterworld#the-reader-loop
Finding: The reader loop in glue: entering and leaving the world
The thread 0x443360 adopts the starting thread's property context, then loops. It polls the stop event with a 0
timeout and returns 0, after setting the work event, when it is set. It waits 500 ms on the work event: a timeout goes
back to the poll, a signal to the queue. Under the lock 0x88569c it takes the first read of the queue 0x885688,
unlinks it and stores it in 0x8856d0. An empty queue goes back to the poll. After each read it sleeps 1 ms and takes
the next without waiting, so the stop event is looked at only when the queue is empty or a wait times out.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- SetThreadPropContext base
- OsSleep os
- SFile::Read storm
- SFileGetFileName storm
- SCritSect::Enter storm
- SCritSect::Leave storm
- SEventWait storm
- SEvent::Set storm
Calls and jumps by a bare address, from tables/calls.tsv.