MCPcopy Create free account
hub / github.com/apache/singa / getOrCreateEp

Method getOrCreateEp

src/io/network/endpoint.cc:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127EndPoint *EndPointFactory::getOrCreateEp(uint32_t ip) {
128 std::unique_lock<std::mutex> lock(map_mtx_);
129 if (0 == ip_ep_map_.count(ip)) {
130 ip_ep_map_[ip] = new EndPoint(this->thread_);
131 }
132 return ip_ep_map_[ip];
133}
134
135EndPoint *EndPointFactory::getEp(uint32_t ip) {
136 std::unique_lock<std::mutex> lock(map_mtx_);

Callers 1

onNewConnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected