| 110 | } |
| 111 | |
| 112 | void middleman::start() { |
| 113 | auto fn = [this] { |
| 114 | mpx_->set_thread_id(); |
| 115 | mpx_->run(); |
| 116 | }; |
| 117 | mpx_thread_ = sys_.launch_thread("caf.net.mpx", thread_owner::system, fn); |
| 118 | launch_background_tasks(sys_); |
| 119 | } |
| 120 | |
| 121 | void middleman::stop() { |
| 122 | mpx_->shutdown(); |
no test coverage detected