apt_cyclic_queue.h File Reference
Cyclic FIFO Queue of Opaque void* Objects.
More...
#include "apt.h"
Go to the source code of this file.
Detailed Description
Cyclic FIFO Queue of Opaque void* Objects.
Define Documentation
#define CYCLIC_QUEUE_DEFAULT_SIZE 100 |
Default size (number of elements) of cyclic queue
Typedef Documentation
Opaque cyclic queue declaration
Function Documentation
Clear the queue (remove all the elements from the queue).
- Parameters:
-
Create cyclic queue.
- Parameters:
-
| size | the initial size of the queue |
- Returns:
- the created queue
Destroy cyclic queue.
- Parameters:
-
| queue | the queue to destroy |
Query whether the queue is empty.
- Parameters:
-
- Returns:
- TRUE if empty, otherwise FALSE
Pop object from the queue.
- Parameters:
-
| queue | the queue to pop message from |
Push object to the queue.
- Parameters:
-
| queue | the queue to push object to |
| obj | the object to push |