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