UINT32 LOS_SemDelete ( UINT32  uwSemHandle  ) 

Delete a semaphore.

Description:
This API is used to delete a semaphore control structure that has an ID specified by uwSemHandle.
注意:
  • The specified sem id must be created first.
参数:
参数名称 描述
uwSemHandle  [IN] ID of the semaphore control structure to be deleted. The ID of the semaphore control structure is obtained from semaphore creation.
返回值:
返回值 描述
LOS_ERRNO_SEM_INVALID  The passed-in uwSemHandle value is invalid.
LOS_ERRNO_SEM_PENDED  The queue of the tasks that are waiting on the semaphore control structure is not null.
LOS_OK  The semaphore control structure is successfully deleted.
Dependency:
  • los_sem.h: the header file that contains the API declaration.
参见:
LOS_SemCreate
自从:
Huawei LiteOS V100R001C00