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

Exited 状态 — 任务已退出,无父任务回收 More...

#include <task_fsm.hpp>

Inheritance diagram for StateExited:
Inheritance graph
Collaboration diagram for StateExited:
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

Exited 状态 — 任务已退出,无父任务回收

Definition at line 124 of file task_fsm.hpp.

Member Function Documentation

◆ on_event()

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

Definition at line 126 of file task_fsm.hpp.

126{ return STATE_ID; }

◆ on_event_unknown()

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

Definition at line 127 of file task_fsm.hpp.

127 {
128 klog::Warn("TaskFsm: Exited received unexpected message id={}",
129 static_cast<int>(msg.get_message_id()));
130 return STATE_ID;
131 }
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: