MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / terminate

Method terminate

net/kernel_socket.cpp:299–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 void terminate() final {
300 if (!workth) return;
301 auto th = workth;
302 workth = nullptr;
303 if (waiting) {
304 thread_interrupt(th);
305 if (!m_block_serv)
306 thread_join((join_handle*)th);
307 }
308 }
309
310 ISocketServer* set_handler(Handler handler) override {
311 m_handler = handler;

Callers

nothing calls this directly

Calls 2

thread_interruptFunction · 0.85
thread_joinFunction · 0.85

Tested by

no test coverage detected