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

Blocked 状态 — 任务阻塞,等待资源 More...

#include <task_fsm.hpp>

Inheritance diagram for StateBlocked:
Inheritance graph
Collaboration diagram for StateBlocked:
Collaboration graph

Public Member Functions

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

Detailed Description

Blocked 状态 — 任务阻塞,等待资源

Definition at line 109 of file task_fsm.hpp.

Member Function Documentation

◆ on_event()

auto StateBlocked::on_event ( const MsgWakeup ) -> etl::fsm_state_id_t
inline

Definition at line 111 of file task_fsm.hpp.

111 {
113 }
constexpr etl::fsm_state_id_t kReady
Definition task_fsm.hpp:15

◆ on_event_unknown()

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

Definition at line 114 of file task_fsm.hpp.

114 {
115 klog::Warn("TaskFsm: Blocked received unexpected message id={}",
116 static_cast<int>(msg.get_message_id()));
117 return STATE_ID;
118 }
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: