SimpleKernel 1.17.0
Loading...
Searching...
No Matches
StateZombie Struct Reference

Zombie 状态 — 任务已退出,等待父任务回收 More...

#include <task_fsm.hpp>

Inheritance diagram for StateZombie:
Inheritance graph
Collaboration diagram for StateZombie:
Collaboration graph

Public Member Functions

auto on_event (const MsgReap &) -> etl::fsm_state_id_t
 
auto on_event_unknown (const etl::imessage &msg) -> etl::fsm_state_id_t
 

Detailed Description

Zombie 状态 — 任务已退出,等待父任务回收

Definition at line 137 of file task_fsm.hpp.

Member Function Documentation

◆ on_event()

auto StateZombie::on_event ( const MsgReap ) -> etl::fsm_state_id_t
inline

Definition at line 139 of file task_fsm.hpp.

139 {
141 }
constexpr etl::fsm_state_id_t kExited
Definition task_fsm.hpp:19

◆ on_event_unknown()

auto StateZombie::on_event_unknown ( const etl::imessage &  msg) -> etl::fsm_state_id_t
inline

Definition at line 142 of file task_fsm.hpp.

142 {
143 klog::Warn("TaskFsm: Zombie received unexpected message id={}",
144 static_cast<int>(msg.get_message_id()));
145 return STATE_ID;
146 }
auto Warn(etl::format_string< Args... > fmt, Args &&... args) -> void
以 WARN 级别记录日志
Here is the call graph for this function:

The documentation for this struct was generated from the following file: