summaryrefslogtreecommitdiff
path: root/docs/application/queue.md
blob: 2807ce9c286d8c97934b887f7eb2d8ec353d4be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Queue

---

## Object Definitions

```c
typedef struct _kpl_queue_item {
    KPL_SLAB_LIST_HEADER(struct _kpl_queue_item);
    kpl_any any;
} kpl_queue_item;

typedef struct _kpl_queue {
    KPL_ALLOC_HEADER(struct _kpl_queue);
    size_t item_length;
    kpl_interface *interface;
    kpl_pool_any *head, *tail;
} kpl_queue;
```