MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / ~TCPSocketPool

Method ~TCPSocketPool

net/pooled_socket.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 ~TCPSocketPool() override {
176 timer.stop();
177 auto th = collector;
178 collector = nullptr;
179 photon::thread_interrupt((photon::thread*)th);
180 photon::thread_join((photon::join_handle*)th);
181 for (auto& l : fdmap) {
182 l.second.delete_all();
183 }
184 delete ev;
185 }
186
187 ISocketStream* connect(const char* path, size_t count) override {
188 LOG_ERROR_RETURN(ENOSYS, nullptr,

Callers

nothing calls this directly

Calls 4

thread_interruptFunction · 0.85
thread_joinFunction · 0.85
stopMethod · 0.45
delete_allMethod · 0.45

Tested by

no test coverage detected