@name 构造/析构函数 @{
| 185 | /// @name 构造/析构函数 |
| 186 | /// @{ |
| 187 | TaskFsm() : fsm_(router_id::kTaskFsm) { |
| 188 | state_list_[0] = &state_uninit_; |
| 189 | state_list_[1] = &state_ready_; |
| 190 | state_list_[2] = &state_running_; |
| 191 | state_list_[3] = &state_sleeping_; |
| 192 | state_list_[4] = &state_blocked_; |
| 193 | state_list_[5] = &state_exited_; |
| 194 | state_list_[6] = &state_zombie_; |
| 195 | fsm_.set_states(state_list_, 7); |
| 196 | } |
| 197 | |
| 198 | TaskFsm(const TaskFsm&) = delete; |
| 199 | TaskFsm(TaskFsm&&) = delete; |
nothing calls this directly
no outgoing calls
no test coverage detected