Home
last modified time | relevance | path

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

/external/grpc-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()
/external/tensorflow/tensorflow/core/platform/default/
Dnet.cc105 static std::unordered_set<int> chosen_ports; in PickUnusedPortOrDie() local
125 if (chosen_ports.find(port) != chosen_ports.end()) { in PickUnusedPortOrDie()
138 chosen_ports.insert(port); in PickUnusedPortOrDie()
/external/tensorflow/tensorflow/core/platform/windows/
Dnet.cc105 static std::unordered_set<int> chosen_ports; in PickUnusedPortOrDie() local
123 if (chosen_ports.find(port) != chosen_ports.end()) { in PickUnusedPortOrDie()
136 chosen_ports.insert(port); in PickUnusedPortOrDie()