Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_generic.cc75 static size_t g_num_shards; variable
259 g_num_shards = GPR_MIN(1, 2 * gpr_cpu_num_cores()); in timer_list_init()
261 static_cast<timer_shard*>(gpr_zalloc(g_num_shards * sizeof(*g_shards))); in timer_list_init()
263 gpr_zalloc(g_num_shards * sizeof(*g_shard_queue))); in timer_list_init()
275 for (i = 0; i < g_num_shards; i++) { in timer_list_init()
296 for (i = 0; i < g_num_shards; i++) { in timer_list_shutdown()
344 while (shard->shard_queue_index < g_num_shards - 1 && in note_deadline_change()
356 timer_shard* shard = &g_shards[GPR_HASH_POINTER(timer, g_num_shards)]; in timer_init()
464 timer_shard* shard = &g_shards[GPR_HASH_POINTER(timer, g_num_shards)]; in timer_cancel()