UINT16 LOS_TaskPriGet ( UINT32  uwTaskID  ) 

Obtain a task priority.

Description:
This API is used to obtain the priority of a specified task.
注意:
None.
参数:
参数名称 描述
uwTaskID  [IN] Type UINT32 Task ID. The task id value is obtained from task creation.
返回值:
返回值 描述
OS_INVALID  The task priority fails to be obtained.
UINT16  The task priority.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
LOS_TaskPriSet
自从:
Huawei LiteOS V100R001C00