| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected