UINT32 LOS_TaskResume ( UINT32  uwTaskID  ) 

Resume a task.

Description:
This API is used to resume a suspended task.
注意:
  • If the task is delayed or blocked, resume the task without adding it to the queue of ready tasks.
  • If the priority of the task resumed after system initialized is higher than the current task and task scheduling is not locked, it is scheduled for running.
参数:
参数名称 描述
uwTaskID  [IN] Type UINT32 Task ID. The task id value is obtained from task creation.
返回值:
返回值 描述
LOS_ERRNO_TSK_ID_INVALID  Invalid Task ID
LOS_ERRNO_TSK_NOT_CREATED  The task is not created.
LOS_ERRNO_TSK_NOT_SUSPENDED  The task is not suspended.
LOS_OK  The task is successfully resumed.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
LOS_TaskSuspend
自从:
Huawei LiteOS V100R001C00