FreeRTOS: Platform
Platform portability layer
Return to main page ↑
IotSemaphore_Wait

Wait on (lock) a semaphore. This function should only return when the semaphore wait succeeds; it is not expected to fail.

void IotSemaphore_Wait( IotSemaphore_t * pSemaphore );

This function blocks and waits until a counting semaphore is positive. It waits forever (deadlocks) if pSemaphore has a count 0 that is never incremented.

Parameters
[in]pSemaphoreThe semaphore to lock.
See also
IotSemaphore_TryWait for a nonblocking wait; IotSemaphore_TimedWait for a wait with timeout.