Home
last modified time | relevance | path

Searched refs:pollset_set (Results 1 – 25 of 93) sorted by relevance

1234

/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dev_poll_posix.cc216 static void pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
1172 grpc_pollset_set* pollset_set = local
1173 static_cast<grpc_pollset_set*>(gpr_zalloc(sizeof(*pollset_set)));
1174 gpr_mu_init(&pollset_set->mu);
1175 return pollset_set;
1178 static void pollset_set_destroy(grpc_pollset_set* pollset_set) { argument
1180 gpr_mu_destroy(&pollset_set->mu);
1181 for (i = 0; i < pollset_set->fd_count; i++) {
1182 GRPC_FD_UNREF(pollset_set->fds[i], "pollset_set");
1184 for (i = 0; i < pollset_set->pollset_count; i++) {
[all …]
Dpolling_entity.cc27 grpc_pollset_set* pollset_set) { in grpc_polling_entity_create_from_pollset_set() argument
29 pollent.pollent.pollset_set = pollset_set; in grpc_polling_entity_create_from_pollset_set()
52 return pollent->pollent.pollset_set; in grpc_polling_entity_pollset_set()
70 GPR_ASSERT(pollent->pollent.pollset_set != nullptr); in grpc_polling_entity_add_to_pollset_set()
71 grpc_pollset_set_add_pollset_set(pss_dst, pollent->pollent.pollset_set); in grpc_polling_entity_add_to_pollset_set()
90 GPR_ASSERT(pollent->pollent.pollset_set != nullptr); in grpc_polling_entity_del_from_pollset_set()
91 grpc_pollset_set_del_pollset_set(pss_dst, pollent->pollent.pollset_set); in grpc_polling_entity_del_from_pollset_set()
Dpollset_set.cc33 void grpc_pollset_set_destroy(grpc_pollset_set* pollset_set) { in grpc_pollset_set_destroy() argument
34 grpc_pollset_set_impl->destroy(pollset_set); in grpc_pollset_set_destroy()
37 void grpc_pollset_set_add_pollset(grpc_pollset_set* pollset_set, in grpc_pollset_set_add_pollset() argument
39 grpc_pollset_set_impl->add_pollset(pollset_set, pollset); in grpc_pollset_set_add_pollset()
42 void grpc_pollset_set_del_pollset(grpc_pollset_set* pollset_set, in grpc_pollset_set_del_pollset() argument
44 grpc_pollset_set_impl->del_pollset(pollset_set, pollset); in grpc_pollset_set_del_pollset()
Dpollset_set.h35 void (*destroy)(grpc_pollset_set* pollset_set);
36 void (*add_pollset)(grpc_pollset_set* pollset_set, grpc_pollset* pollset);
37 void (*del_pollset)(grpc_pollset_set* pollset_set, grpc_pollset* pollset);
45 void grpc_pollset_set_destroy(grpc_pollset_set* pollset_set);
46 void grpc_pollset_set_add_pollset(grpc_pollset_set* pollset_set,
48 void grpc_pollset_set_del_pollset(grpc_pollset_set* pollset_set,
Dev_posix.cc357 static void pollset_set_destroy(grpc_pollset_set* pollset_set) { in pollset_set_destroy() argument
358 GRPC_POLLING_API_TRACE("pollset_set_destroy(%p)", pollset_set); in pollset_set_destroy()
359 g_event_engine->pollset_set_destroy(pollset_set); in pollset_set_destroy()
362 static void pollset_set_add_pollset(grpc_pollset_set* pollset_set, in pollset_set_add_pollset() argument
364 GRPC_POLLING_API_TRACE("pollset_set_add_pollset(%p, %p)", pollset_set, in pollset_set_add_pollset()
366 g_event_engine->pollset_set_add_pollset(pollset_set, pollset); in pollset_set_add_pollset()
369 static void pollset_set_del_pollset(grpc_pollset_set* pollset_set, in pollset_set_del_pollset() argument
371 GRPC_POLLING_API_TRACE("pollset_set_del_pollset(%p, %p)", pollset_set, in pollset_set_del_pollset()
373 g_event_engine->pollset_set_del_pollset(pollset_set, pollset); in pollset_set_del_pollset()
393 void grpc_pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd) { in grpc_pollset_set_add_fd() argument
[all …]
Dev_posix.h75 void (*pollset_set_destroy)(grpc_pollset_set* pollset_set);
76 void (*pollset_set_add_pollset)(grpc_pollset_set* pollset_set,
78 void (*pollset_set_del_pollset)(grpc_pollset_set* pollset_set,
84 void (*pollset_set_add_fd)(grpc_pollset_set* pollset_set, grpc_fd* fd);
85 void (*pollset_set_del_fd)(grpc_pollset_set* pollset_set, grpc_fd* fd);
188 void grpc_pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
189 void grpc_pollset_set_del_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
Dendpoint.cc40 grpc_pollset_set* pollset_set) { in grpc_endpoint_add_to_pollset_set() argument
41 ep->vtable->add_to_pollset_set(ep, pollset_set); in grpc_endpoint_add_to_pollset_set()
45 grpc_pollset_set* pollset_set) { in grpc_endpoint_delete_from_pollset_set() argument
46 ep->vtable->delete_from_pollset_set(ep, pollset_set); in grpc_endpoint_delete_from_pollset_set()
Dpollset_set_windows.cc32 static void pollset_set_destroy(grpc_pollset_set* pollset_set) {} in pollset_set_destroy() argument
34 static void pollset_set_add_pollset(grpc_pollset_set* pollset_set, in pollset_set_add_pollset() argument
37 static void pollset_set_del_pollset(grpc_pollset_set* pollset_set, in pollset_set_del_pollset() argument
/external/grpc-grpc/src/core/lib/iomgr/
Dpolling_entity.cc27 grpc_pollset_set* pollset_set) { in grpc_polling_entity_create_from_pollset_set() argument
29 pollent.pollent.pollset_set = pollset_set; in grpc_polling_entity_create_from_pollset_set()
52 return pollent->pollent.pollset_set; in grpc_polling_entity_pollset_set()
70 GPR_ASSERT(pollent->pollent.pollset_set != nullptr); in grpc_polling_entity_add_to_pollset_set()
71 grpc_pollset_set_add_pollset_set(pss_dst, pollent->pollent.pollset_set); in grpc_polling_entity_add_to_pollset_set()
90 GPR_ASSERT(pollent->pollent.pollset_set != nullptr); in grpc_polling_entity_del_from_pollset_set()
91 grpc_pollset_set_del_pollset_set(pss_dst, pollent->pollent.pollset_set); in grpc_polling_entity_del_from_pollset_set()
Dev_poll_posix.cc214 static void pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
1205 grpc_pollset_set* pollset_set = local
1206 static_cast<grpc_pollset_set*>(gpr_zalloc(sizeof(*pollset_set)));
1207 gpr_mu_init(&pollset_set->mu);
1208 return pollset_set;
1211 static void pollset_set_destroy(grpc_pollset_set* pollset_set) { argument
1213 gpr_mu_destroy(&pollset_set->mu);
1214 for (i = 0; i < pollset_set->fd_count; i++) {
1215 GRPC_FD_UNREF(pollset_set->fds[i], "pollset_set");
1217 for (i = 0; i < pollset_set->pollset_count; i++) {
[all …]
Dpollset_set.cc33 void grpc_pollset_set_destroy(grpc_pollset_set* pollset_set) { in grpc_pollset_set_destroy() argument
34 grpc_pollset_set_impl->destroy(pollset_set); in grpc_pollset_set_destroy()
37 void grpc_pollset_set_add_pollset(grpc_pollset_set* pollset_set, in grpc_pollset_set_add_pollset() argument
39 grpc_pollset_set_impl->add_pollset(pollset_set, pollset); in grpc_pollset_set_add_pollset()
42 void grpc_pollset_set_del_pollset(grpc_pollset_set* pollset_set, in grpc_pollset_set_del_pollset() argument
44 grpc_pollset_set_impl->del_pollset(pollset_set, pollset); in grpc_pollset_set_del_pollset()
Dpollset_set.h35 void (*destroy)(grpc_pollset_set* pollset_set);
36 void (*add_pollset)(grpc_pollset_set* pollset_set, grpc_pollset* pollset);
37 void (*del_pollset)(grpc_pollset_set* pollset_set, grpc_pollset* pollset);
45 void grpc_pollset_set_destroy(grpc_pollset_set* pollset_set);
46 void grpc_pollset_set_add_pollset(grpc_pollset_set* pollset_set,
48 void grpc_pollset_set_del_pollset(grpc_pollset_set* pollset_set,
Dev_posix.cc351 static void pollset_set_destroy(grpc_pollset_set* pollset_set) { in pollset_set_destroy() argument
352 GRPC_POLLING_API_TRACE("pollset_set_destroy(%p)", pollset_set); in pollset_set_destroy()
353 g_event_engine->pollset_set_destroy(pollset_set); in pollset_set_destroy()
356 static void pollset_set_add_pollset(grpc_pollset_set* pollset_set, in pollset_set_add_pollset() argument
358 GRPC_POLLING_API_TRACE("pollset_set_add_pollset(%p, %p)", pollset_set, in pollset_set_add_pollset()
360 g_event_engine->pollset_set_add_pollset(pollset_set, pollset); in pollset_set_add_pollset()
363 static void pollset_set_del_pollset(grpc_pollset_set* pollset_set, in pollset_set_del_pollset() argument
365 GRPC_POLLING_API_TRACE("pollset_set_del_pollset(%p, %p)", pollset_set, in pollset_set_del_pollset()
367 g_event_engine->pollset_set_del_pollset(pollset_set, pollset); in pollset_set_del_pollset()
387 void grpc_pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd) { in grpc_pollset_set_add_fd() argument
[all …]
Dev_posix.h70 void (*pollset_set_destroy)(grpc_pollset_set* pollset_set);
71 void (*pollset_set_add_pollset)(grpc_pollset_set* pollset_set,
73 void (*pollset_set_del_pollset)(grpc_pollset_set* pollset_set,
79 void (*pollset_set_add_fd)(grpc_pollset_set* pollset_set, grpc_fd* fd);
80 void (*pollset_set_del_fd)(grpc_pollset_set* pollset_set, grpc_fd* fd);
174 void grpc_pollset_set_add_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
175 void grpc_pollset_set_del_fd(grpc_pollset_set* pollset_set, grpc_fd* fd);
Dendpoint.cc40 grpc_pollset_set* pollset_set) { in grpc_endpoint_add_to_pollset_set() argument
41 ep->vtable->add_to_pollset_set(ep, pollset_set); in grpc_endpoint_add_to_pollset_set()
45 grpc_pollset_set* pollset_set) { in grpc_endpoint_delete_from_pollset_set() argument
46 ep->vtable->delete_from_pollset_set(ep, pollset_set); in grpc_endpoint_delete_from_pollset_set()
Dpollset_set_windows.cc32 static void pollset_set_destroy(grpc_pollset_set* pollset_set) {} in pollset_set_destroy() argument
34 static void pollset_set_add_pollset(grpc_pollset_set* pollset_set, in pollset_set_add_pollset() argument
37 static void pollset_set_del_pollset(grpc_pollset_set* pollset_set, in pollset_set_del_pollset() argument
Dpollset_set_custom.cc29 void pollset_set_destroy(grpc_pollset_set* pollset_set) {} in pollset_set_destroy() argument
31 void pollset_set_add_pollset(grpc_pollset_set* pollset_set, in pollset_set_add_pollset() argument
34 void pollset_set_del_pollset(grpc_pollset_set* pollset_set, in pollset_set_del_pollset() argument
/external/grpc-grpc/test/core/iomgr/
Dresolve_address_test.cc45 grpc_pollset_set* pollset_set; member
54 args->pollset_set = grpc_pollset_set_create(); in args_init()
55 grpc_pollset_set_add_pollset(args->pollset_set, args->pollset); in args_init()
63 grpc_pollset_set_del_pollset(args->pollset_set, args->pollset); in args_finish()
64 grpc_pollset_set_destroy(args->pollset_set); in args_finish()
128 "localhost:1", nullptr, args.pollset_set, in test_localhost()
141 "localhost", "1", args.pollset_set, in test_default_port()
154 "localhost", "https", args.pollset_set, in test_non_numeric_default_port()
167 "localhost", nullptr, args.pollset_set, in test_missing_default_port()
180 "[2001:db8::1]:1", nullptr, args.pollset_set, in test_ipv6_with_port()
[all …]
Dresolve_address_posix_test.cc47 grpc_pollset_set* pollset_set; member
56 args->pollset_set = grpc_pollset_set_create(); in args_init()
57 grpc_pollset_set_add_pollset(args->pollset_set, args->pollset); in args_init()
67 grpc_pollset_set_del_pollset(args->pollset_set, args->pollset); in args_finish()
68 grpc_pollset_set_destroy(args->pollset_set); in args_finish()
132 "unix:/path/name", nullptr, args.pollset_set, in test_unix_socket()
153 path_name, nullptr, args.pollset_set, in test_unix_socket_path_name_too_long()
Dpollset_set_test.cc379 test_pollset_set pollset_set; in pollset_set_test_empty_pollset() local
386 init_test_pollset_sets(&pollset_set, num_pss); in pollset_set_test_empty_pollset()
389 grpc_pollset_set_add_fd(pollset_set.pss, tfds[0].fd); in pollset_set_test_empty_pollset()
393 grpc_pollset_set_add_pollset(pollset_set.pss, pollsets[0].ps); in pollset_set_test_empty_pollset()
394 grpc_pollset_set_add_pollset(pollset_set.pss, pollsets[1].ps); in pollset_set_test_empty_pollset()
412 grpc_pollset_set_del_fd(pollset_set.pss, tfds[0].fd); in pollset_set_test_empty_pollset()
413 grpc_pollset_set_del_pollset(pollset_set.pss, pollsets[0].ps); in pollset_set_test_empty_pollset()
414 grpc_pollset_set_del_pollset(pollset_set.pss, pollsets[1].ps); in pollset_set_test_empty_pollset()
419 cleanup_test_pollset_sets(&pollset_set, num_pss); in pollset_set_test_empty_pollset()
/external/grpc-grpc/test/core/client_channel/resolvers/
Ddns_resolver_cooldown_test.cc55 grpc_pollset_set* pollset_set; member
66 name, default_port, g_iomgr_args.pollset_set, on_done, addrs); in test_resolve_address_impl()
96 dns_server, name, default_port, g_iomgr_args.pollset_set, on_done, addrs, in test_dns_lookup_ares_locked()
122 args->pollset_set = grpc_pollset_set_create(); in iomgr_args_init()
123 grpc_pollset_set_add_pollset(args->pollset_set, args->pollset); in iomgr_args_init()
129 grpc_pollset_set_del_pollset(args->pollset_set, args->pollset); in iomgr_args_finish()
130 grpc_pollset_set_destroy(args->pollset_set); in iomgr_args_finish()
/external/grpc-grpc/test/cpp/naming/
Dcancel_ares_query_test.cc113 grpc_pollset_set* pollset_set; member
121 args->pollset_set = grpc_pollset_set_create(); in ArgsInit()
122 grpc_pollset_set_add_pollset(args->pollset_set, args->pollset); in ArgsInit()
131 grpc_pollset_set_del_pollset(args->pollset_set, args->pollset); in ArgsFinish()
132 grpc_pollset_set_destroy(args->pollset_set); in ArgsFinish()
183 client_target, nullptr, args->pollset_set, args->lock); in TestCancelActiveDNSQuery()
248 grpc_pollset_set_add_pollset_set(fake_other_pollset_set, args.pollset_set); in TEST()
/external/grpc-grpc/src/core/lib/http/
Dhttpcli.cc78 context->pollset_set = grpc_pollset_set_create(); in grpc_httpcli_context_init()
82 grpc_pollset_set_destroy(context->pollset_set); in grpc_httpcli_context_destroy()
89 req->context->pollset_set); in finish()
212 grpc_tcp_client_connect(&req->connected, &req->ep, req->context->pollset_set, in next_address()
257 req->context->pollset_set); in internal_request_begin()
259 request->host, req->handshaker->default_port, req->context->pollset_set, in internal_request_begin()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/http/
Dhttpcli.cc82 context->pollset_set = grpc_pollset_set_create(); in grpc_httpcli_context_init()
86 grpc_pollset_set_destroy(context->pollset_set); in grpc_httpcli_context_destroy()
93 req->context->pollset_set); in finish()
215 grpc_tcp_client_connect(&req->connected, &req->ep, req->context->pollset_set, in next_address()
261 req->context->pollset_set); in internal_request_begin()
263 request->host, req->handshaker->default_port, req->context->pollset_set, in internal_request_begin()
/external/grpc-grpc/test/core/transport/chttp2/
Dsettings_timeout_test.cc109 grpc_pollset_set* pollset_set = grpc_pollset_set_create(); in Connect() local
110 grpc_pollset_set_add_pollset(pollset_set, pollset_); in Connect()
112 grpc_tcp_client_connect(state.closure(), &endpoint_, pollset_set, in Connect()
119 grpc_pollset_set_destroy(pollset_set); in Connect()

1234