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

Method schedule_at

src/iocore/eventsystem/UnixEvent.cc:53–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void
54Event::schedule_at(ink_hrtime atimeout_at, int acallback_event)
55{
56 callback_event = acallback_event;
57 ink_assert(ethread == this_ethread());
58 ink_assert(atimeout_at > 0);
59 if (in_the_priority_queue) {
60 ethread->EventQueue.remove(this);
61 }
62 timeout_at = atimeout_at;
63 period = 0;
64 immediate = false;
65 mutex = continuation->mutex;
66 if (!in_the_prot_queue) {
67 ethread->EventQueueExternal.enqueue_local(this);
68 }
69}
70
71void
72Event::schedule_in(ink_hrtime atimeout_in, int acallback_event)

Callers

nothing calls this directly

Calls 3

this_ethreadFunction · 0.85
enqueue_localMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected