Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/lib/iomgr/
Dev_epollex_linux.cc283 size_t fd_capacity; member
1396 if (pss->fd_count == pss->fd_capacity) {
1397 pss->fd_capacity = GPR_MAX(pss->fd_capacity * 2, 8);
1399 gpr_realloc(pss->fds, pss->fd_capacity * sizeof(*pss->fds)));
1559 if (a->fd_capacity < a->fd_count + b->fd_count) {
1560 a->fd_capacity = GPR_MAX(2 * a->fd_capacity, a->fd_count + b->fd_count);
1562 gpr_realloc(a->fds, a->fd_capacity * sizeof(*a->fds)));
1591 b->fd_count = b->fd_capacity = b->pollset_count = b->pollset_capacity = 0;
Dev_poll_posix.cc205 size_t fd_capacity; member
255 size_t fd_capacity; member
896 pollset->fd_capacity = 0;
921 if (pollset->fd_count == pollset->fd_capacity) {
922 pollset->fd_capacity =
923 GPR_MAX(pollset->fd_capacity + 8, pollset->fd_count * 3 / 2);
925 gpr_realloc(pollset->fds, sizeof(grpc_fd*) * pollset->fd_capacity));
1331 if (pollset_set->fd_count == pollset_set->fd_capacity) {
1332 pollset_set->fd_capacity = GPR_MAX(8, 2 * pollset_set->fd_capacity);
1335 pollset_set->fd_capacity * sizeof(*pollset_set->fds)));
Dev_epollsig_linux.cc207 size_t fd_capacity; member
374 if (pi->fd_cnt == pi->fd_capacity) { in polling_island_add_fds_locked()
375 pi->fd_capacity = GPR_MAX(pi->fd_capacity + 8, pi->fd_cnt * 3 / 2); in polling_island_add_fds_locked()
377 gpr_realloc(pi->fds, sizeof(grpc_fd*) * pi->fd_capacity)); in polling_island_add_fds_locked()
479 pi->fd_capacity = 0; in polling_island_create()