Creating or deleting a task
|
LOS_TaskCreateOnly
|
Creates a task and suspends the task to disable scheduling of the task. To enable scheduling of the task, call LOS_TaskResume to make the task enter the Ready state.
|
LOS_TaskCreate
|
Creates a task and places the task in the Ready state. If there is no task with a higher priority in the Ready queue, the task will be executed.
|
LOS_TaskDelete
|
Deletes the specified task.
|
Controlling task status
|
LOS_TaskResume
|
Resumes a suspended task to place the task in the Ready state.
|
LOS_TaskSuspend
|
Suspends the specified task and performs task switching.
|
LOS_TaskDelay
|
Makes a task wait for a period of time (in ticks) and releases CPU resources. When the delay time expires, the task enters the Ready state again. The input parameter is the number of ticks.
|
LOS_Msleep
|
Converts the input parameter number of milliseconds into number of ticks, and use the result to calls LOS_TaskDelay.
|
LOS_TaskYield
|
Sets the time slice of the current task to 0 to release CPU resources and schedule the task with the highest priority in the Ready queue to run.
|
Control task scheduling
|
LOS_TaskLock
|
Locks task scheduling. However, tasks can still be interrupted.
|
LOS_TaskUnlock
|
Unlocks task scheduling.
|
LOS_Schedule
|
Triggers task scheduling
|
Controlling task priority
|
LOS_CurTaskPriSet
|
Sets the priority for the current task.
|
LOS_TaskPriSet
|
Sets the priority for a specified task.
|
LOS_TaskPriGet
|
Obtains the priority of a specified task.
|
Obtaining task information
|
LOS_CurTaskIDGet
|
Obtains the ID of the current task.
|
LOS_NextTaskIDGet
|
Obtains the ID of the task with the highest priority in the Ready queue.
|
LOS_NewTaskIDGet
|
Same as LOS_NextTaskIDGet.
|
LOS_CurTaskNameGet
|
Obtains the name of the current task.
|
LOS_TaskNameGet
|
Obtains the name of a specified task.
|
LOS_TaskStatusGet
|
Obtains the state of a specified task.
|
LOS_TaskInfoGet
|
Obtains information about a specified task, including the task state, priority, stack size, stack pointer (SP), task entry function, and used stack space.
|
LOS_TaskIsRunning
|
Checks whether the task module has started scheduling.
|
Maintaining and testing task information
|
LOS_TaskSwitchInfoGet
|
Obtains task switching information. The macro LOSCFG_BASE_CORE_EXC_TSK_SWITCH must be enabled.
|