| 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()) { |
nothing calls this directly
no test coverage detected