FreeRTOS: BLE
BLE
Return to main page ↑
IotDeQueue_RemoveAll

Remove all elements in a queue.

static inline void IotDeQueue_RemoveAll( IotDeQueue_t * const pQueue,
void ( * freeElement )( void * ),
size_t linkOffset )
Parameters
[in]pQueueThe queue to empty.
[in]freeElementA function to free memory used by each removed queue element. Optional; pass NULL to ignore.
[in]linkOffsetOffset in bytes of a link member in its container, used to calculate the pointer to pass to freeElement. This value should be calculated with the C offsetof macro. This parameter is ignored if freeElement is NULL or its value is 0.