AWS IoT Device SDK C:
Platform
Platform portability layer
|
Return to main page ↑ |
Attempt to wait on (lock) a semaphore. Return immediately if the semaphore is not available.
If the count of pSemaphore
is positive, this function immediately decrements the semaphore and returns. Otherwise, this function returns without decrementing pSemaphore
.
[in] | pSemaphore | The semaphore to lock. |
true
if the semaphore wait succeeded; false
if the semaphore has a count of 0
.