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

Method wakeup

src/proxy/logging/LogObject.cc:524–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522 }
523
524 int
525 wakeup(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
526 {
527 for (auto &[o, b] : current_buffers) {
528 if (b && ink_hrtime_to_sec(ink_get_hrtime()) > b->expiration_time()) {
529 o->flush_buffer(b);
530 b = nullptr;
531 }
532 }
533
534 return EVENT_CONT;
535 }
536
537 LogBuffer *
538 current_buffer(LogObject *o, size_t *offset, size_t bytes_needed)

Callers

nothing calls this directly

Calls 4

ink_hrtime_to_secFunction · 0.85
ink_get_hrtimeFunction · 0.85
expiration_timeMethod · 0.80
flush_bufferMethod · 0.80

Tested by

no test coverage detected