| |
Set a task priority.
-
Description:
-
This API is used to set the priority of a specified task.
-
注意:
-
- If the set priority is higher than the priority of the current running task, task scheduling probably occurs.
- Changing the priority of the current running task also probably causes task scheduling.
- Using the interface to change the priority of software timer task and idle task is not allowed.
- Using the interface in the interrupt is not allowed.
-
参数:
-
|
参数名称 |
描述 |
|
uwTaskID |
[IN] Type UINT32 Task ID. The task id value is obtained from task creation. |
|
usTaskPrio |
[IN] Type UINT16 Task priority. |
-
返回值:
-
-
Dependency:
-
- los_task.h: the header file that contains the API declaration.
-
参见:
-
LOS_TaskPriSet
-
自从:
-
Huawei LiteOS V100R001C00
|