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

Sleeping 状态 — 任务已挂起,等待唤醒时钟 More...

#include <task_fsm.hpp>

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

Sleeping 状态 — 任务已挂起,等待唤醒时钟

Definition at line 93 of file task_fsm.hpp.

Member Function Documentation

◆ on_event()

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

Definition at line 96 of file task_fsm.hpp.

96 {
98 }
constexpr etl::fsm_state_id_t kReady
Definition task_fsm.hpp:15

◆ on_event_unknown()

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

Definition at line 99 of file task_fsm.hpp.

99 {
100 klog::Warn("TaskFsm: Sleeping received unexpected message id={}",
101 static_cast<int>(msg.get_message_id()));
102 return STATE_ID;
103 }
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: