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

退出消息,携带退出码与父任务标志 More...

#include <task_messages.hpp>

Inheritance diagram for MsgExit:
Inheritance graph
Collaboration diagram for MsgExit:
Collaboration graph

Public Member Functions

构造/析构函数
 MsgExit (int _exit_code, bool _has_parent)
 
 MsgExit ()=default
 
 MsgExit (const MsgExit &)=default
 
 MsgExit (MsgExit &&)=default
 
auto operator= (const MsgExit &) -> MsgExit &=default
 
auto operator= (MsgExit &&) -> MsgExit &=default
 
 ~MsgExit ()=default
 

Public Attributes

int exit_code {0}
 退出码
 
bool has_parent {false}
 是否有父任务
 

Detailed Description

退出消息,携带退出码与父任务标志

Definition at line 91 of file task_messages.hpp.

Constructor & Destructor Documentation

◆ MsgExit() [1/4]

MsgExit::MsgExit ( int  _exit_code,
bool  _has_parent 
)
inline

Definition at line 99 of file task_messages.hpp.

100 : exit_code(_exit_code), has_parent(_has_parent) {}
bool has_parent
是否有父任务
int exit_code
退出码

◆ MsgExit() [2/4]

MsgExit::MsgExit ( )
default

◆ MsgExit() [3/4]

MsgExit::MsgExit ( const MsgExit )
default

◆ MsgExit() [4/4]

MsgExit::MsgExit ( MsgExit &&  )
default

◆ ~MsgExit()

MsgExit::~MsgExit ( )
default

Member Function Documentation

◆ operator=() [1/2]

auto MsgExit::operator= ( const MsgExit ) -> MsgExit &=default
default

◆ operator=() [2/2]

auto MsgExit::operator= ( MsgExit &&  ) -> MsgExit &=default
default

Member Data Documentation

◆ exit_code

int MsgExit::exit_code {0}

退出码

Definition at line 93 of file task_messages.hpp.

93{0};

◆ has_parent

bool MsgExit::has_parent {false}

是否有父任务

Definition at line 95 of file task_messages.hpp.

95{false};

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