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

Method startIO

src/iocore/net/NetHandler.cc:53–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53int
54NetHandler::startIO(NetEvent *ne)
55{
56 ink_assert(this->mutex->thread_holding == this_ethread());
57 ink_assert(ne->get_thread() == this_ethread());
58 int res = 0;
59
60 PollDescriptor *pd = get_PollDescriptor(this->thread);
61 if (ne->ep.start(pd, ne, this, EVENTIO_READ | EVENTIO_WRITE) < 0) {
62 res = errno;
63 // EEXIST should be ok, though it should have been cleared before we got back here
64 if (errno != EEXIST) {
65 Dbg(dbg_ctl_iocore_net, "NetHandler::startIO : failed on EventIO::start, errno = [%d](%s)", errno, strerror(errno));
66 return -res;
67 }
68 }
69
70 if (ne->read.triggered == 1) {
71 read_ready_list.enqueue(ne);
72 }
73 ne->nh = this;
74 return res;
75}
76
77void
78NetHandler::stopIO(NetEvent *ne)

Callers 4

acceptEventMethod · 0.80
acceptEventMethod · 0.80
populateMethod · 0.80
connectUpMethod · 0.80

Calls 5

this_ethreadFunction · 0.85
get_PollDescriptorFunction · 0.85
get_threadMethod · 0.80
startMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected