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

Method reenable_re

src/iocore/net/UnixNetVConnection.cc:422–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void
423UnixNetVConnection::reenable_re(VIO *vio)
424{
425 if (!thread) {
426 return;
427 }
428 EThread *t = vio->mutex->thread_holding;
429 ink_assert(t == this_ethread());
430 if (nh->mutex->thread_holding == t) {
431 set_enabled(vio);
432 if (vio == &read.vio) {
433 ep.modify(EVENTIO_READ);
434 ep.refresh(EVENTIO_READ);
435 if (read.triggered) {
436 net_read_io(nh);
437 } else {
438 nh->read_ready_list.remove(this);
439 }
440 } else {
441 ep.modify(EVENTIO_WRITE);
442 ep.refresh(EVENTIO_WRITE);
443 if (write.triggered) {
444 this->net_write_io(nh);
445 } else {
446 nh->write_ready_list.remove(this);
447 }
448 }
449 } else {
450 reenable(vio);
451 }
452}
453
454UnixNetVConnection::UnixNetVConnection()
455{

Callers

nothing calls this directly

Calls 5

net_write_ioMethod · 0.95
this_ethreadFunction · 0.85
modifyMethod · 0.80
refreshMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected