The main event for NetHandler
| 321 | // |
| 322 | // The main event for NetHandler |
| 323 | int |
| 324 | NetHandler::mainNetEvent(int event, Event *e) |
| 325 | { |
| 326 | if (TS_EVENT_MGMT_UPDATE == event) { |
| 327 | intptr_t idx = reinterpret_cast<intptr_t>(e->cookie); |
| 328 | // Copy to the same offset in the instance struct. |
| 329 | config[idx] = global_config[idx]; |
| 330 | if (config_value_affects_per_thread_value[idx]) { |
| 331 | this->configure_per_thread_values(); |
| 332 | } |
| 333 | return EVENT_CONT; |
| 334 | } else { |
| 335 | ink_assert(trigger_event == e && (event == EVENT_INTERVAL || event == EVENT_POLL)); |
| 336 | return this->waitForActivity(-1); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | int |
| 341 | NetHandler::waitForActivity(ink_hrtime timeout) |
nothing calls this directly
no test coverage detected