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

Method assign_thread

src/iocore/eventsystem/P_UnixEventProcessor.h:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53TS_INLINE EThread *
54EventProcessor::assign_thread(EventType etype)
55{
56 int next;
57 ThreadGroupDescriptor *tg = &thread_group[etype];
58
59 ink_assert(etype < MAX_EVENT_TYPES);
60 if (tg->_count > 1) {
61 next = ++tg->_next_round_robin % tg->_count;
62 } else {
63 next = 0;
64 }
65 return tg->_thread[next];
66}
67
68// If thread_holding is the correct type, return it.
69//

Callers 4

net_acceptFunction · 0.80
init_acceptMethod · 0.80
do_blocking_acceptMethod · 0.80
_recv_packetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected