Platform API Reference
Platform portability layer
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
IotSemaphore_Destroy
void IotSemaphore_Destroy(IotSemaphore_t *pSemaphore)
Free resources used by a semaphore.
IotSemaphore_t
_IotSystemSemaphore_t IotSemaphore_t
The type used to represent semaphores, configured with the type _IotSystemSemaphore_t.
Definition: iot_platform_types.h:97