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

Function tmr_reset

tools/http_load/timers.c:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void
248tmr_reset(struct timeval *nowP, Timer *t)
249{
250 mstimeout_cache = -1;
251 t->time = *nowP;
252 t->time.tv_sec += t->msecs / 1000L;
253 t->time.tv_usec += (t->msecs % 1000L) * 1000L;
254 if (t->time.tv_usec >= 1000000L) {
255 t->time.tv_sec += t->time.tv_usec / 1000000L;
256 t->time.tv_usec %= 1000000L;
257 }
258 l_resort(t);
259}
260
261void
262tmr_cancel(Timer *t)

Callers 1

handle_readFunction · 0.85

Calls 1

l_resortFunction · 0.85

Tested by

no test coverage detected