Commit Graph

2 Commits (322f1512ea806611eb37f508cd952bbbc050f853)

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