| 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 | |
| 196 | private: |
| 197 | TPooledSocket::TImpl* GetImpl() { |
nothing calls this directly
no test coverage detected