Home
last modified time | relevance | path

Searched refs:NUM_HASH_BUCKETS (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_generic.cc90 #define NUM_HASH_BUCKETS 1009 /* Prime number close to 1000 */ macro
92 static gpr_mu g_hash_mu[NUM_HASH_BUCKETS]; /* One mutex per bucket */
93 static grpc_timer* g_timer_ht[NUM_HASH_BUCKETS] = {nullptr};
96 for (int i = 0; i < NUM_HASH_BUCKETS; i++) { in init_timer_ht()
102 for (int i = 0; i < NUM_HASH_BUCKETS; i++) { in destroy_timer_ht()
108 size_t i = GPR_HASH_POINTER(t, NUM_HASH_BUCKETS); in is_in_ht()
122 size_t i = GPR_HASH_POINTER(t, NUM_HASH_BUCKETS); in add_to_ht()
147 size_t i = GPR_HASH_POINTER(t, NUM_HASH_BUCKETS); in remove_from_ht()