benilla-re systems structs docs

WorkerProc

function · net · orchestration

Address
0x5bd9f0 · 23 bytes, up to 0x5bda06
Signature
uint32_t __stdcall (void *slot)
Meaning
Runs a worker slot's loop on its engine with its index; returns 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
net/threads#starting-the-threads

Finding: Starting the threads in net: threads

WowConnectionNet::Start creates one thread for each of the engine's worker count (at most 32), each named Net Thread <n> and running WorkerProc, which runs RunWorker(n). It then creates the thread Network running 0x5bda10, which runs the select loop and, on its return, sets the engine's stop event. Start returns once the flag +0x65d is set, which the select loop sets as it begins; it polls for it every 100 ms. The engine keeps a slot of 0x30 bytes per worker from +0x1c: the connection it is serving, its event and its stop flag.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.