WowConnectionNet::SignalEvent
function · net · host
- Address
0x5bdc10· 147 bytes, up to0x5bdca2- Signature
void __thiscall (WowConnectionNet *this, WowConnection *conn, uint32_t events)- Meaning
- Posts a connection and its event bits to the first idle worker, waiting up to 500 ms for one; otherwise drops them
- 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
- j_SInterlockedIncrement net
- SCritSect::Enter storm
- SCritSect::Leave storm
- SEventWait storm
- SEvent::Set storm
- SInterlockedIncrement storm
Calls and jumps by a bare address, from tables/calls.tsv.