|
AWS IoT Device SDK C:
Platform
Platform portability layer
|
| Return to main page ↑ |
Attempt to wait on (lock) a semaphore with a timeout.
This function blocks and waits until a counting semaphore is positive or its timeout expires (whichever is sooner). It decrements pSemaphore and returns true if the semaphore is positive at some time during the wait. If pSemaphore is always 0 during the wait, this function returns false.
| [in] | pSemaphore | The semaphore to lock. |
| [in] | timeoutMs | Relative timeout of semaphore lock. This function returns false if the semaphore couldn't be locked within this timeout. |
true if the semaphore wait succeeded; false if it timed out.