Platform API Reference
Platform portability layer
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.
IotSemaphore_t
_IotSystemSemaphore_t IotSemaphore_t
The type used to represent semaphores, configured with the type _IotSystemSemaphore_t.
Definition: iot_platform_types.h:97
IotSemaphore_Wait
void IotSemaphore_Wait(IotSemaphore_t *pSemaphore)
Wait on (lock) a semaphore. This function should only return when the semaphore wait succeeds; it is ...