| |
Lock the task scheduling.
-
Description:
-
This API is used to lock the task scheduling. Task switching will not occur if the task scheduling is locked.
-
注意:
-
- If the task scheduling is locked, but interrupts are not disabled, tasks are still able to be interrupted.
- One is added to the number of task scheduling locks if this API is called. The number of locks is decreased by one if the task scheduling is unlocked. Therefore, this API should be used together with LOS_TaskUnlock.
-
参数:
-
-
返回值:
-
-
Dependency:
-
- los_task.h: the header file that contains the API declaration.
-
参见:
-
LOS_TaskUnlock
-
自从:
-
Huawei LiteOS V100R001C00
|