Create a Counting semaphore.
-
Description:
-
This API is used to create a semaphore control structure according to the initial number of available semaphores specified by usCount and return the ID of this semaphore control structure.
-
注意:
-
-
参数:
-
|
参数名称 |
描述 |
|
usCount |
[IN] Initial number of available semaphores. The value range is [0, OS_SEM_COUNTING_MAX_COUNT). |
|
puwSemHandle |
[OUT] ID of the semaphore control structure that is initialized. |
-
返回值:
-
-
Dependency:
-
- los_sem.h: the header file that contains the API declaration.
-
参见:
-
LOS_SemDelete
-
自从:
-
Huawei LiteOS V100R001C00