Searched refs:chosen_ports (Results 1 – 3 of 3) sorted by relevance
39 static int* chosen_ports = nullptr; variable49 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()
105 static std::unordered_set<int> chosen_ports; in PickUnusedPortOrDie() local125 if (chosen_ports.find(port) != chosen_ports.end()) { in PickUnusedPortOrDie()138 chosen_ports.insert(port); in PickUnusedPortOrDie()
105 static std::unordered_set<int> chosen_ports; in PickUnusedPortOrDie() local123 if (chosen_ports.find(port) != chosen_ports.end()) { in PickUnusedPortOrDie()136 chosen_ports.insert(port); in PickUnusedPortOrDie()