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

Free resources used by a semaphore.

void IotSemaphore_Destroy( IotSemaphore_t * pSemaphore );

This function frees resources used by a semaphore. It must be called on an initialized IotSemaphore_t. No other semaphore functions should be called on pSemaphore after calling this function (unless the semaphore is re-created).

Parameters
[in]pSemaphoreThe semaphore to destroy.
Warning
This function must not be called on a semaphore with waiting threads.
See also
IotSemaphore_Create