summaryrefslogtreecommitdiff
path: root/docs/application/queue.md
blob: cab2e0b13eb8ffe332b5b25516a1fffe90d1c021 (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_POOL_HEADER(_kpl_queue_item);
    kpl_any any;
} kpl_queue_item;

typedef struct _kpl_queue {
    KPL_POOL_HEADER(_kpl_queue);
    uint32_t length;
    kpl_interface *interface;
    kpl_pool_any *head, *tail;
} kpl_queue;
```