WowConnectionNet::RunWorker
function · net · host
- Address
0x5bdb50· 178 bytes, up to0x5bdc01- Signature
void __thiscall (WowConnectionNet *this, uint32_t index)- Meaning
- Calls the thread-init hook, then services each connection posted to the worker slot until its stop flag is set
- Confidence
- verified, proof one
- Finding
- net/threads#handing-work-to-workers
Finding: Handing work to workers in net: threads
WowConnectionNet::SignalEvent(connection, bits) waits up to 500 ms for an idle worker. On a timeout it returns without posting and the bits are not kept; the select loop tests every socket again on its next pass. Otherwise it stores the bits in the connection's +0xe0, assigns the connection to the first free slot and sets the slot's event. A worker waits on its event in 1,000 ms steps until its stop flag is set; on waking it takes the bits, runs the handler of each: bit 1 0x5b6370, bit 2 0x5b6bc0, bit 4 0x5b6c40, bit 8 0x5b53a0, repeats while more bits have accumulated, then frees its slot, releases the idle semaphore and wakes the select thread.
The derivation is in the doc.
Callers 1
- WorkerProc net
Callees 8
- WowConnection::Release net
- WowConnectionNet::WakeSelectThread net
- WowConnectionNet::Service net
- SCritSect::Enter storm
- SCritSect::Leave storm
- SEventWait storm
- 0x659b20 storm
- SInterlockedDecrement storm
Calls and jumps by a bare address, from tables/calls.tsv.