Home
last modified time | relevance | path

Searched refs:grpc_timer (Results 1 – 25 of 28) sorted by relevance

12

/external/grpc-grpc/src/core/lib/iomgr/
Dtimer.h30 typedef struct grpc_timer { struct
34 struct grpc_timer* next; argument
35 struct grpc_timer* prev; argument
38 struct grpc_timer* hash_table_next; argument
43 } grpc_timer; argument
52 void (*init)(grpc_timer* timer, grpc_millis, grpc_closure* closure);
53 void (*cancel)(grpc_timer* timer);
69 void grpc_timer_init(grpc_timer* timer, grpc_millis deadline,
74 void grpc_timer_init_unset(grpc_timer* timer);
102 void grpc_timer_cancel(grpc_timer* timer);
Dtimer_heap.cc36 static void adjust_upwards(grpc_timer** first, uint32_t i, grpc_timer* t) { in adjust_upwards()
51 static void adjust_downwards(grpc_timer** first, uint32_t i, uint32_t length, in adjust_downwards()
52 grpc_timer* t) { in adjust_downwards()
77 heap->timers = static_cast<grpc_timer**>( in maybe_shrink()
78 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in maybe_shrink()
82 static void note_changed_priority(grpc_timer_heap* heap, grpc_timer* timer) { in note_changed_priority()
98 int grpc_timer_heap_add(grpc_timer_heap* heap, grpc_timer* timer) { in grpc_timer_heap_add()
102 heap->timers = static_cast<grpc_timer**>( in grpc_timer_heap_add()
103 gpr_realloc(heap->timers, heap->timer_capacity * sizeof(grpc_timer*))); in grpc_timer_heap_add()
111 void grpc_timer_heap_remove(grpc_timer_heap* heap, grpc_timer* timer) { in grpc_timer_heap_remove()
[all …]
Dtimer_generic.cc72 grpc_timer list;
93 static grpc_timer* g_timer_ht[NUM_HASH_BUCKETS] = {nullptr};
107 static bool is_in_ht(grpc_timer* t) { in is_in_ht()
111 grpc_timer* p = g_timer_ht[i]; in is_in_ht()
120 static void add_to_ht(grpc_timer* t) { in add_to_ht()
125 grpc_timer* p = g_timer_ht[i]; in add_to_ht()
146 static void remove_from_ht(grpc_timer* t) { in remove_from_ht()
155 grpc_timer* p = g_timer_ht[i]; in remove_from_ht()
184 static void validate_non_pending_timer(grpc_timer* t) { in validate_non_pending_timer()
315 static void list_join(grpc_timer* head, grpc_timer* timer) { in list_join()
[all …]
Dtimer_generic.h27 struct grpc_timer { struct
31 struct grpc_timer* next; argument
32 struct grpc_timer* prev; argument
35 struct grpc_timer* hash_table_next; argument
Dtimer_heap.h27 grpc_timer** timers;
33 int grpc_timer_heap_add(grpc_timer_heap* heap, grpc_timer* timer);
38 void grpc_timer_heap_remove(grpc_timer_heap* heap, grpc_timer* timer);
39 grpc_timer* grpc_timer_heap_top(grpc_timer_heap* heap);
Dtimer_custom.cc36 grpc_timer* timer = t->original; in grpc_custom_timer_callback()
44 static void timer_init(grpc_timer* timer, grpc_millis deadline, in timer_init()
66 static void timer_cancel(grpc_timer* timer) { in timer_cancel()
Dtimer.cc30 void grpc_timer_init(grpc_timer* timer, grpc_millis deadline, in grpc_timer_init()
35 void grpc_timer_cancel(grpc_timer* timer) { grpc_timer_impl->cancel(timer); } in grpc_timer_cancel()
Dtimer_custom.h31 grpc_timer* original;
Dtcp_client_custom.cc40 grpc_timer alarm;
Dtcp_client_windows.cc47 grpc_timer alarm;
Dtcp_client_cfstream.cc57 grpc_timer alarm;
Dtcp_client_posix.cc55 grpc_timer alarm;
/external/grpc-grpc/test/core/iomgr/
Dtimer_heap_test.cc34 static grpc_timer* create_test_elements(size_t num_elements) { in create_test_elements()
35 grpc_timer* elems = in create_test_elements()
36 static_cast<grpc_timer*>(gpr_malloc(num_elements * sizeof(grpc_timer))); in create_test_elements()
44 static int contains(grpc_timer_heap* pq, grpc_timer* el) { in contains()
75 grpc_timer* test_elements = create_test_elements(num_test_elements); in test1()
103 grpc_timer* el = &test_elements[elem_num]; in test1()
130 grpc_timer elem;
193 grpc_timer* top = grpc_timer_heap_top(&pq); in test2()
249 grpc_timer* const te = pq.timers[pq.timer_count - 1]; in shrink_test()
266 grpc_timer* te = pq.timers[which]; in shrink_test()
Dtimer_list_test.cc50 grpc_timer timers[20]; in add_test()
114 grpc_timer timers[5]; in destruction_test()
169 grpc_timer timers[4]; in long_running_service_cleanup_test()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dinternal.h119 grpc_timer delayed_ping_timer;
451 grpc_timer next_bdp_ping_timer;
463 grpc_timer keepalive_ping_timer;
465 grpc_timer keepalive_watchdog_timer;
/external/grpc-grpc/src/core/ext/filters/deadline/
Ddeadline_filter.h38 grpc_timer timer;
/external/grpc-grpc/src/core/ext/filters/max_age/
Dmax_age_filter.cc60 grpc_timer max_age_timer;
63 grpc_timer max_age_grace_timer;
66 grpc_timer max_idle_timer;
/external/grpc-grpc/src/cpp/common/
Dalarm.cc106 grpc_timer timer_;
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dbackup_poller.cc40 grpc_timer polling_timer;
Dchannel_connectivity.cc70 grpc_timer alarm;
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/native/
Ddns_resolver.cc96 grpc_timer next_resolution_timer_;
/external/grpc-grpc/src/core/lib/channel/
Dhandshaker.cc81 grpc_timer deadline_timer;
/external/grpc-grpc/src/core/ext/transport/chttp2/server/
Dchttp2_server.cc67 grpc_timer timer;
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Ddns_resolver_ares.cc112 grpc_timer next_resolution_timer_;
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dgrpclb.cc238 grpc_timer client_load_report_timer_;
316 grpc_timer lb_call_retry_timer_;
334 grpc_timer lb_fallback_timer_;

12