refactor: 优化任务状态,EXIT状态仅表示任务已退出

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I53e98540af4deb44e64f6879df340b27efb201b8
This commit is contained in:
zhushengle
2022-04-02 14:55:20 +08:00
parent e34c4050f9
commit 4e9f8c71f9
3 changed files with 11 additions and 6 deletions

View File

@@ -1503,6 +1503,11 @@ typedef struct {
LOSCFG_TASK_STRUCT_EXTENSION /**< Task extension field */
} LosTaskCB;
STATIC INLINE BOOL OsTaskIsExit(const LosTaskCB *taskCB)
{
return ((taskCB->taskStatus & OS_TASK_STATUS_EXIT) != 0);
}
typedef struct {
LosTaskCB *runTask;
LosTaskCB *newTask;