| 15 | extern PikaServer* g_pika_server; |
| 16 | |
| 17 | PikaDispatchThread::PikaDispatchThread(std::set<std::string>& ips, int port, int work_num, int cron_interval, |
| 18 | int queue_limit, int max_conn_rbuf_size) |
| 19 | : conn_factory_(max_conn_rbuf_size), handles_(this) { |
| 20 | thread_rep_ = net::NewDispatchThread(ips, port, work_num, &conn_factory_, cron_interval, queue_limit, &handles_); |
| 21 | thread_rep_->set_thread_name("Dispatcher"); |
| 22 | } |
| 23 | |
| 24 | PikaDispatchThread::~PikaDispatchThread() { |
| 25 | thread_rep_->StopThread(); |
nothing calls this directly
no test coverage detected