4.2.5 qmm_queue_flush Function
C
void qmm_queue_flush(queue_t *q)
Summary
Internal function for flushing a specific queue
Description
This function flushes the entire queue
Precondition
qmm_queue_init should have called for initilazing the particular queue before using it.
Parameters
q - Queue to be flushed
Returns
None
Example
queue_t app_queue;
buffer_t *app_buf;
// Allocate the buffer
app_buf = bmm_buffer_alloc(LARGE_BUFFER_SIZE);
uint8_t queue_size = 10;
qmm_queue_init(&app_queue, queue_size);
qmm_queue_flush(&app_queue);
Remarks
None