|
|
@ -61,16 +61,11 @@ bool grpc_polling_entity_is_empty(const grpc_polling_entity* pollent) { |
|
|
|
void grpc_polling_entity_add_to_pollset_set(grpc_polling_entity* pollent, |
|
|
|
void grpc_polling_entity_add_to_pollset_set(grpc_polling_entity* pollent, |
|
|
|
grpc_pollset_set* pss_dst) { |
|
|
|
grpc_pollset_set* pss_dst) { |
|
|
|
if (pollent->tag == GRPC_POLLS_POLLSET) { |
|
|
|
if (pollent->tag == GRPC_POLLS_POLLSET) { |
|
|
|
#ifdef GRPC_CFSTREAM |
|
|
|
|
|
|
|
// CFStream does not use file destriptors. When CFStream is used, the fd
|
|
|
|
// CFStream does not use file destriptors. When CFStream is used, the fd
|
|
|
|
// pollset is possible to be null.
|
|
|
|
// pollset is possible to be null.
|
|
|
|
if (pollent->pollent.pollset != nullptr) { |
|
|
|
if (pollent->pollent.pollset != nullptr) { |
|
|
|
grpc_pollset_set_add_pollset(pss_dst, pollent->pollent.pollset); |
|
|
|
grpc_pollset_set_add_pollset(pss_dst, pollent->pollent.pollset); |
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
|
|
|
|
GPR_ASSERT(pollent->pollent.pollset != nullptr); |
|
|
|
|
|
|
|
grpc_pollset_set_add_pollset(pss_dst, pollent->pollent.pollset); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
} else if (pollent->tag == GRPC_POLLS_POLLSET_SET) { |
|
|
|
} else if (pollent->tag == GRPC_POLLS_POLLSET_SET) { |
|
|
|
GPR_ASSERT(pollent->pollent.pollset_set != nullptr); |
|
|
|
GPR_ASSERT(pollent->pollent.pollset_set != nullptr); |
|
|
|
grpc_pollset_set_add_pollset_set(pss_dst, pollent->pollent.pollset_set); |
|
|
|
grpc_pollset_set_add_pollset_set(pss_dst, pollent->pollent.pollset_set); |
|
|
|