UINT32 LOS_SemPost ( UINT32  uwSemHandle  ) 

Release a semaphore.

Description:
This API is used to release a semaphore that has a semaphore control structure ID specified by uwSemHandle.
注意:
  • The specified sem id must be created first.
参数:
参数名称 描述
uwSemHandle  [IN] ID of the semaphore control structure to be released.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_OVERFLOW  The times of semaphore release exceed the maximum times permitted.
LOS_OK  The semaphore is successfully released.
Dependency:
  • los_sem.h: the header file that contains the API declaration.
参见:
LOS_SemPend | LOS_SemCreate
自从:
Huawei LiteOS V100R001C00