| |
Release a mutex.
-
Description:
-
This API is used to release a specified mutex.
-
注意:
-
- The specific mutex should be created firstly.
- Do not release a mutex during an interrupt.
- If a recursive mutex is locked for many times, it must be unlocked for the same times to be released.
-
参数:
-
|
参数名称 |
描述 |
|
uwMuxHandle |
[IN] Handle of the mutex to be released. The value of handle should be in [0, LOSCFG_BASE_IPC_MUX_LIMIT - 1]. |
-
返回值:
-
|
返回值 |
描述 |
|
LOS_ERRNO_MUX_INVALID |
The mutex state (for example, the mutex does not exist or is not in use or owned by other thread) is not applicable for the current operation. |
|
LOS_ERRNO_MUX_PEND_INTERR |
The mutex is being released during an interrupt. |
|
LOS_OK |
The mutex is successfully released. |
-
Dependency:
-
- los_mux.h: the header file that contains the API declaration.
-
参见:
-
LOS_MuxCreate |
LOS_MuxPend
-
自从:
-
Huawei LiteOS V100R001C00
|