|
ADS
Algorithms and Data Structures
|
A queue that many producer threads fill and one consumer thread empties, lock-free and unbounded, beyond the book. More...
Files | |
| file | ADS/concurrent/MPSCQueue.h |
| A queue that many producer threads fill and one consumer thread empties, lock-free and unbounded, beyond the book: each producer has a lane of its own, so that the producers never compete with each other, and a lane is a list of blocks of \( B \) places between its producer and the consumer. | |
Classes | |
| class | ADS::MPSCQueue< T, B > |
| an unbounded queue from many producers to one consumer, a lane each More... | |
A queue that many producer threads fill and one consumer thread empties, lock-free and unbounded, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of concurrency.