FreeRTOS: 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.
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_GetCount
uint32_t IotSemaphore_GetCount(IotSemaphore_t *pSemaphore)
Query the current count of the semaphore.