benilla-re systems structs docs

OsTcpBaseThread

function · os

Address
0x43ae20 · 2305 bytes, up to 0x43b720
Meaning
Runs the OsTcp_Base thread, which among its work calls the callback of each finished resolve request
Confidence
inferred
Finding
net/dial#resolver-hand-off

Finding: Resolver hand-off in net: dial

The thread adds each entry, under the OsTcp object's lock (an event at +0x618 used as a mutex), to the list at request +0x24: capacity, count +0x28, data +0x2c, step. At the list's end it stores 1 at +0x20, the flag, and sets the event at the object's +0x544. A request missing from the object's list, or a hostent whose first address pointer is null, ends the thread before the flag. The OsTcp thread 0x43ae20, named OsTcp_Base, takes requests off the list's head while the head's flag is set and, on that thread, calls each one's callback through 0x43b810 with the data pointer, the count and the argument, then frees its host copy, thread handle and list.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 38

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