ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
SPSCQueue.h

A bounded queue between one producer thread and one consumer thread, lock-free and wait-free, beyond the book. More...

Files

file  ADS/concurrent/SPSCQueue.h
 A bounded queue between one producer thread and one consumer thread, lock-free and wait-free, beyond the book: the circular vector of the queue of section 4.3.3 [see ArrayQueue.h], whose head only the consumer writes and whose tail only the producer writes, so that each index is an atomic with the release and acquire orders and no lock is needed (the queue of Lamport).

Classes

class  ADS::SPSCQueue< T >
 a bounded queue from one producer to one consumer, lock-free More...

Detailed description

A bounded queue between one producer thread and one consumer thread, lock-free and wait-free, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of concurrency.