AWS IoT Device SDK C: Platform
Platform portability layer
Return to main page ↑
IotSemaphore_GetCount

Query the current count of the semaphore.

uint32_t IotSemaphore_GetCount( IotSemaphore_t * pSemaphore );

This function queries a counting semaphore for its current value. A counting semaphore's value is always 0 or positive.

Parameters
[in]pSemaphoreThe semaphore to query.
Returns
The current count of the semaphore. This function should not fail.