UINT32 LOS_MuxDelete ( UINT32  puwMuxHandle  ) 

Delete a mutex.

Description:
This API is used to delete a specified mutex. Return LOS_OK on deleting successfully, return specific error code otherwise.
注意:
  • The specific mutex should be created firstly.
  • The mutex can be deleted successfully only if no other tasks pend on it.
参数:
参数名称 描述
puwMuxHandle  [IN] Handle of the mutex to be deleted. The value of handle should be in [0, LOSCFG_BASE_IPC_MUX_LIMIT - 1].
返回值:
返回值 描述
LOS_ERRNO_MUX_INVALID  Invalid handle or mutex in use.
LOS_ERRNO_MUX_PENDED  Tasks pended on this mutex.
LOS_OK  The mutex is successfully deleted.
Dependency:
  • los_mux.h: the header file that contains the API declaration.
参见:
LOS_MuxCreate
自从:
Huawei LiteOS V100R001C00