| 69 | } |
| 70 | |
| 71 | void |
| 72 | RPCServer::start_thread(std::function<TSThread()> const &cb_init, std::function<void(TSThread)> const &cb_destroy) |
| 73 | { |
| 74 | Dbg(dbg_ctl, "Starting RPC Server on: %s", _socketImpl->name().c_str()); |
| 75 | _init = cb_init; |
| 76 | _destroy = cb_destroy; |
| 77 | |
| 78 | ink_thread_create(&_this_thread, run_thread, nullptr, 0, 0, nullptr); |
| 79 | } |
| 80 | |
| 81 | void |
| 82 | RPCServer::stop_thread() |