MCPcopy Create free account
hub / github.com/apache/trafficserver / start

Method start

src/iocore/net/UnixUDPNet.cc:304–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304int
305UDPNetProcessorInternal::start(int n_upd_threads, size_t stacksize)
306{
307 if (n_upd_threads < 1) {
308 return -1;
309 }
310
311 pollCont_offset = eventProcessor.allocate(sizeof(PollCont));
312 udpNetHandler_offset = eventProcessor.allocate(sizeof(UDPNetHandler));
313
314 eventProcessor.schedule_spawn(&initialize_thread_for_udp_net, ET_UDP);
315 eventProcessor.spawn_event_threads(ET_UDP, n_upd_threads, stacksize);
316
317 return 0;
318}
319
320namespace
321{

Callers 15

mainEventMethod · 0.45
mainFunction · 0.45
sendto_reMethod · 0.45
UDPBindMethod · 0.45
SendUDPPacketMethod · 0.45
UnixUDPNet.ccFile · 0.45
load_buffer_and_writeMethod · 0.45
load_buffer_and_writeMethod · 0.45

Calls 3

spawn_event_threadsMethod · 0.80
allocateMethod · 0.45
schedule_spawnMethod · 0.45

Tested by 5

mainFunction · 0.36
mainFunction · 0.36
testRunStartingMethod · 0.36
testRunStartingMethod · 0.36