rigtorp/SPSCQueue
A bounded single-producer single-consumer wait-free and lock-free queue written in C++11 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3810
- days_rel: n/a
- days_push: 972
- n_releases_24m: 0
Adoption not part of the score
1280 stars · 166 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A header-only C++11 library providing a bounded single-producer single-consumer wait-free and lock-free queue. It is optimized for high-performance inter-thread communication and claims to outperform boost::lockfree::spsc and folly::ProducerConsumerQueue.
Use cases
- pass messages between two threads with minimal latency
- implement a lock-free producer-consumer pipeline in C++
- replace boost::lockfree::spsc_queue with a faster alternative
- build a fixed-capacity ring buffer for inter-thread data transfer
- share data between one writer and one reader thread without locks
When to choose
- you have exactly one producer thread and one consumer thread
- you need wait-free, bounded queue semantics with predictable latency
- you want a dependency-free header-only C++11 solution
- throughput and cache efficiency matter more than dynamic sizing
When to avoid
- you need multiple producers or multiple consumers
- you need an unbounded or dynamically growing queue
- you need blocking with condition variables or cross-thread wakeup built in
- you are not programming in C++
Facets
library · maturity stable
concurrency message-queue developer-tools performance cpp cross-platform lock-free spsc-queue header-only wait-free single-producer-single-consumer cpp11 algorithms
1 source
- readme: https://github.com/rigtorp/SPSCQueue · fetched 2026-08-28 · 97c0738b764c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rigtorp/SPSCQueue | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="rigtorp/SPSCQueue")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem