Home
last modified time | relevance | path

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

/third_party/grpc/test/core/util/
Dport.cc39 static int* chosen_ports = nullptr; variable
49 if (chosen_ports[i] == port) { in free_chosen_port()
56 chosen_ports[found_at] = chosen_ports[num_chosen_ports - 1]; in free_chosen_port()
67 grpc_free_port_using_server(chosen_ports[i]); in free_chosen_ports()
70 gpr_free(chosen_ports); in free_chosen_ports()
74 if (chosen_ports == nullptr) { in chose_port()
78 chosen_ports = static_cast<int*>( in chose_port()
79 gpr_realloc(chosen_ports, sizeof(int) * num_chosen_ports)); in chose_port()
80 chosen_ports[num_chosen_ports - 1] = port; in chose_port()