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

Function l_resort

tools/http_load/timers.c:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void
106l_resort(Timer *t)
107{
108 /* Remove the timer from its old list. */
109 l_remove(t);
110 /* Recompute the hash. */
111 t->hash = hash(t);
112 /* And add it back in to its new list, sorted correctly. */
113 l_add(t);
114}
115
116void
117tmr_init(void)

Callers 2

tmr_runFunction · 0.85
tmr_resetFunction · 0.85

Calls 3

l_removeFunction · 0.85
hashFunction · 0.85
l_addFunction · 0.85

Tested by

no test coverage detected