benilla-re systems structs docs

WowConnectionNet::Service

function · net · orchestration

Address
0x5bdae0 · 107 bytes, up to 0x5bdb4a
Signature
void __thiscall (WowConnectionNet *this, WowConnection *conn, uint32_t events)
Meaning
Runs a connection's writable, readable, exception and close handlers for its event bits, again while new bits arrive
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

Callees 6

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