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

Function hash

tools/http_load/timers.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40ClientData JunkClientData;
41
42static unsigned int
43hash(Timer *t)
44{
45 /* We can hash on the trigger time, even though it can change over
46 ** the life of a timer via either the periodic bit or the tmr_reset()
47 ** call. This is because both of those guys call l_resort(), which
48 ** recomputes the hash and moves the timer to the appropriate list.
49 */
50 return ((unsigned int)t->time.tv_sec ^ (unsigned int)t->time.tv_usec) % HASH_SIZE;
51}
52
53static void
54l_add(Timer *t)

Callers 4

l_resortFunction · 0.85
tmr_createFunction · 0.85
SSLSessionIDMethod · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected