Commit Graph

2 Commits (29e5af76d4f0a7d5b079c760cc48aa8b26c554e8)

Author SHA1 Message Date
Romain Vimont dfd0707a29 Move utilities to util/ 5 years ago
Romain Vimont 53b6ee2cf4 Add generic intrusive FIFO queue
We need several FIFO queues (a queue of packets, a queue of messages,
etc.).

Some of them are implemented using cbuf, a generic circular buffer. But
for recording, we need to store the packets in an unbounded queue until
they are written, so the queue was implemented manually.

Create a generic implementation (using macros) to avoid reimplementing
it every time.
5 years ago