Signbit MPSCQ
0.5.0
|
#include <mpscq.h>
Classes | |
struct | Envelope |
struct | Message |
Public Member Functions | |
void | append (Envelope *elem) |
Envelope * | flushAll () |
Multiple-producer Single-Consumer Queue
Messages wrapped in (prepended by) Envelopes are appended by multiple producers and popped in batches by a single consumer.
This implementation is lock-free.
|
inline |
Appends this object to the queue
elem | is the new element |
|
inline |
Atomically removes and returns all elements from the queue