Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/lib/iomgr/
Dresource_quota.cc183 static void ru_unref_by(grpc_resource_user* resource_user, gpr_atm amount);
189 static void rulist_add_head(grpc_resource_user* resource_user, in rulist_add_head() argument
191 grpc_resource_quota* resource_quota = resource_user->resource_quota; in rulist_add_head()
194 *root = resource_user; in rulist_add_head()
195 resource_user->links[list].next = resource_user->links[list].prev = in rulist_add_head()
196 resource_user; in rulist_add_head()
198 resource_user->links[list].next = *root; in rulist_add_head()
199 resource_user->links[list].prev = (*root)->links[list].prev; in rulist_add_head()
200 resource_user->links[list].next->links[list].prev = in rulist_add_head()
201 resource_user->links[list].prev->links[list].next = resource_user; in rulist_add_head()
[all …]
Dresource_quota.h90 grpc_resource_user* resource_user);
92 void grpc_resource_user_ref(grpc_resource_user* resource_user);
93 void grpc_resource_user_unref(grpc_resource_user* resource_user);
94 void grpc_resource_user_shutdown(grpc_resource_user* resource_user);
99 bool grpc_resource_user_allocate_threads(grpc_resource_user* resource_user,
109 void grpc_resource_user_free_threads(grpc_resource_user* resource_user,
117 void grpc_resource_user_alloc(grpc_resource_user* resource_user, size_t size,
120 void grpc_resource_user_free(grpc_resource_user* resource_user, size_t size);
125 void grpc_resource_user_post_reclaimer(grpc_resource_user* resource_user,
128 void grpc_resource_user_finish_reclamation(grpc_resource_user* resource_user);
[all …]
Dtcp_custom.cc67 grpc_resource_user* resource_user; member
77 grpc_resource_user_unref(tcp->resource_user); in tcp_free()
293 grpc_resource_user_shutdown(tcp->resource_user); in endpoint_shutdown()
324 return tcp->resource_user; in endpoint_get_resource_user()
358 tcp->resource_user = grpc_resource_user_create(resource_quota, peer_string); in custom_tcp_endpoint_create()
360 &tcp->slice_allocator, tcp->resource_user, tcp_read_allocation_done, tcp); in custom_tcp_endpoint_create()
Dendpoint_cfstream.cc59 grpc_resource_user* resource_user; member
64 grpc_resource_user_unref(ep->resource_user); in CFStreamFree()
292 grpc_resource_user_shutdown(ep_impl->resource_user); in CFStreamShutdown()
308 return ep_impl->resource_user; in CFStreamGetResourceUser()
363 ep_impl->resource_user = in grpc_cfstream_endpoint_create()
366 ep_impl->resource_user, in grpc_cfstream_endpoint_create()
Dtcp_windows.cc119 grpc_resource_user* resource_user; member
134 grpc_resource_user_unref(tcp->resource_user); in tcp_free()
409 grpc_resource_user_shutdown(tcp->resource_user); in win_shutdown()
425 return tcp->resource_user; in win_get_resource_user()
463 tcp->resource_user = grpc_resource_user_create(resource_quota, peer_string); in grpc_tcp_create()
Dtcp_posix.cc107 grpc_resource_user* resource_user; member
290 grpc_resource_quota* rq = grpc_resource_user_quota(tcp->resource_user); in get_target_read_size()
324 grpc_resource_user_shutdown(tcp->resource_user); in tcp_shutdown()
331 grpc_resource_user_unref(tcp->resource_user); in tcp_free()
990 return tcp->resource_user; in tcp_get_resource_user()
1068 tcp->resource_user = grpc_resource_user_create(resource_quota, peer_string); in grpc_tcp_create()
1070 &tcp->slice_allocator, tcp->resource_user, tcp_read_allocation_done, tcp); in grpc_tcp_create()
/external/grpc-grpc/test/core/util/
Dmock_endpoint.cc40 grpc_resource_user* resource_user; member
84 grpc_resource_user_shutdown(m->resource_user); in me_shutdown()
91 grpc_resource_user_unref(m->resource_user); in me_destroy()
101 return m->resource_user; in me_get_resource_user()
125 m->resource_user = grpc_resource_user_create(resource_quota, name); in grpc_mock_endpoint_create()
Dpassthru_endpoint.cc44 grpc_resource_user* resource_user; member
128 grpc_resource_user_shutdown(m->resource_user); in me_shutdown()
141 grpc_resource_user_unref(p->client.resource_user); in me_destroy()
142 grpc_resource_user_unref(p->server.resource_user); in me_destroy()
160 return m->resource_user; in me_get_resource_user()
186 m->resource_user = grpc_resource_user_create(resource_quota, name); in half_init()
/external/grpc-grpc/test/core/iomgr/
Dresource_quota_test.cc56 grpc_resource_user* resource_user; member
63 grpc_resource_user_free(a->resource_user, a->size); in reclaimer_cb()
64 grpc_resource_user_finish_reclamation(a->resource_user); in reclaimer_cb()
69 grpc_closure* make_reclaimer(grpc_resource_user* resource_user, size_t size, in make_reclaimer() argument
73 a->resource_user = resource_user; in make_reclaimer()