MCPcopy Create free account
hub / github.com/Tencent/phxsql / InitRoutines

Method InitRoutines

phxsqlproxy/worker_thread.h:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39 template<class T>
40 void InitRoutines(GroupStatusCache * group_status_cache) {
41 io_routine_mgr_ = new IORoutineMgr(config_, worker_config_);
42
43 connection_dispatcher_ = new ConnectionDispatcher(io_routine_mgr_);
44
45 int routine_count = worker_config_->io_routine_count_;
46 for (int i = 0; i < routine_count; ++i) {
47 T * io_routine = new T(io_routine_mgr_, group_status_cache);
48 io_routines_.push_back(io_routine);
49 }
50
51 monitor_routine_ = new MonitorRoutine(config_, io_routine_mgr_);
52 }
53
54 void run();
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected