UINT32 LOS_TaskStatusGet ( UINT32  uwTaskID,
UINT32 puwTaskStatus  
)

Obtain the task status.

Description:
This API is used to obtain the task status.
注意:
None.
参数:
参数名称 描述
uwTaskID  [IN] Type TSK_HANDLE_T Task ID.
puwTaskStatus  [OUT] Type UINT32 Pointer to the task status to be obtained.
返回值:
返回值 描述
LOS_ERRNO_TSK_PTR_NULL  0x02000201: Null parameter.
LOS_ERRNO_TSK_ID_INVALID  0x02000207: Invalid task ID.
LOS_ERRNO_TSK_NOT_CREATED  0x0200020a: The task is not created.
LOS_OK  0: The task information structure is successfully obtained.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00