MCPcopy Create free account
hub / github.com/catboost/catboost / Get

Method Get

library/cpp/coroutine/engine/sockpool.h:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 TPooledSocket Get(TConnectData* conn) {
174 TPooledSocket ret;
175
176 if (TPooledSocket::TImpl* alive = GetImpl()) {
177 ret = TPooledSocket(alive);
178 } else {
179 ret = AllocateMore(conn);
180 }
181
182 ret.Impl_->Touch();
183
184 return ret;
185 }
186
187 bool GetAlive(TPooledSocket& socket) {
188 if (TPooledSocket::TImpl* alive = GetImpl()) {

Callers

nothing calls this directly

Calls 3

GetImplFunction · 0.85
TPooledSocketClass · 0.85
TouchMethod · 0.45

Tested by

no test coverage detected