| 420 | } |
| 421 | |
| 422 | void |
| 423 | UnixNetVConnection::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 | |
| 454 | UnixNetVConnection::UnixNetVConnection() |
| 455 | { |
nothing calls this directly
no test coverage detected