benilla-re systems structs docs

s_asyncReaderLock

global · client

Address
0x88569c · 24 bytes, up to 0x8856b3
Type
uint32_t[6]
Meaning
Holds the critical section that guards the read queues
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.