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

Method GetAlive

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

Source from the content-addressed store, hash-verified

185 }
186
187 bool GetAlive(TPooledSocket& socket) {
188 if (TPooledSocket::TImpl* alive = GetImpl()) {
189 alive->Touch();
190 socket = TPooledSocket(alive);
191 return true;
192 }
193 return false;
194 }
195
196private:
197 TPooledSocket::TImpl* GetImpl() {

Callers

nothing calls this directly

Calls 3

GetImplFunction · 0.85
TPooledSocketClass · 0.85
TouchMethod · 0.45

Tested by

no test coverage detected