MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / on_event

Method on_event

src/task/include/task_fsm.hpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37struct StateUnInit : public etl::fsm_state<etl::fsm, StateUnInit,
38 TaskStatusId::kUnInit, MsgSchedule> {
39 auto on_event(const MsgSchedule&) -> etl::fsm_state_id_t {
40 return TaskStatusId::kReady;
41 }
42 auto on_event_unknown(const etl::imessage& msg) -> etl::fsm_state_id_t {
43 klog::Warn("TaskFsm: UnInit received unexpected message id={}",
44 static_cast<int>(msg.get_message_id()));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected