A fast single-producer, single-consumer lock-free queue for C++
This mini-repository has my very own implementation of a lock-free queue (that I designed from scratch) for C++.
It only supports a two-thread use case (one consuming, and one producing). The threads can't switch roles, though you could use this queue completely from a single thread if you wish (but that would sort of defeat the purpose!).
Note: If you need a general-purpose multi-producer, multi-consumer lock free queue, I have one of those too.
This repository also includes a circular-buffer SPSC queue which supports blocking on enqueue as well as dequeue.
... More
license | BSD-2-Clause |
---|---|
project | readerwriterqueue |
url | github.com/cameron314/readerwriterqueue |
1 Version
version | 1.0.6+4 |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 0 |
reviews | +1 |