MCPcopy Create free account
hub / github.com/OpenAtomFoundation/pikiwidb / PikaDispatchThread

Method PikaDispatchThread

src/pika_dispatch_thread.cc:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15extern PikaServer* g_pika_server;
16
17PikaDispatchThread::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
24PikaDispatchThread::~PikaDispatchThread() {
25 thread_rep_->StopThread();

Callers

nothing calls this directly

Calls 2

NewDispatchThreadFunction · 0.50
set_thread_nameMethod · 0.45

Tested by

no test coverage detected