Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_heap.cc75 heap->timer_count <= heap->timer_capacity / SHRINK_FULLNESS_FACTOR / 2) { in maybe_shrink()
76 heap->timer_capacity = heap->timer_count * SHRINK_FULLNESS_FACTOR; in maybe_shrink()
78 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in maybe_shrink()
99 if (heap->timer_count == heap->timer_capacity) { in grpc_timer_heap_add()
100 heap->timer_capacity = in grpc_timer_heap_add()
101 GPR_MAX(heap->timer_capacity + 1, heap->timer_capacity * 3 / 2); in grpc_timer_heap_add()
103 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in grpc_timer_heap_add()
Dtimer_heap.h29 uint32_t timer_capacity; member
/external/grpc-grpc/test/core/iomgr/
Dtimer_heap_test.cc257 GPR_ASSERT(pq.timer_count * 2 <= pq.timer_capacity); in shrink_test()
258 GPR_ASSERT(pq.timer_capacity <= pq.timer_count * 4); in shrink_test()
271 GPR_ASSERT(pq.timer_count * 2 <= pq.timer_capacity); in shrink_test()
273 GPR_ASSERT(pq.timer_capacity <= pq.timer_count * 4); in shrink_test()
275 GPR_ASSERT(16 <= pq.timer_capacity); in shrink_test()
281 GPR_ASSERT(pq.timer_capacity >= 16 && pq.timer_capacity < 32); in shrink_test()