AWS IoT Device SDK C:
Platform
Platform portability layer
|
Return to main page ↑ |
Create a new counting semaphore.
This function creates a new counting semaphore with a given initial and maximum value. It must be called on an uninitialized IotSemaphore_t. This function must not be called on an already-initialized IotSemaphore_t.
[in] | pNewSemaphore | Pointer to the memory that will hold the new semaphore. |
[in] | initialValue | The semaphore should be initialized with this value. |
[in] | maxValue | The maximum value the semaphore will reach. |
true
if semaphore creation succeeds; false
otherwise.Example