cameron314/readerwriterqueue
A fast single-producer, single-consumer lock-free queue for C++ observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
Flags: no_license
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: 4955
- days_rel: 492
- days_push: 10
- n_releases_24m: 1
Adoption not part of the score
4615 stars · 735 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A fast, wait-free single-producer single-consumer (SPSC) lock-free queue for C++11, implemented as a header-only library. It supports move semantics, dynamic growth, and a blocking variant with timed waits.
Use cases
- pass data between two threads without locks
- fast SPSC queue for C++
- lock-free producer-consumer communication
- queue that never allocates on enqueue
- high-performance inter-thread message passing
- replace std::queue in a two-thread pipeline
When to choose
- you have exactly one producer thread and one consumer thread
- you need wait-free O(1) enqueue/dequeue with minimal latency
- you want a header-only dependency with no build system required
- you need a blocking queue with timed waits
When to avoid
- you need multiple producers or multiple consumers
- threads need to switch producer/consumer roles
- you need cross-platform atomics on compilers older than C++11
- you need a general-purpose MPMC queue (use the author's moodycamel::ConcurrentQueue instead)
Facets
library · maturity stable
concurrency caching developer-tools performance cpp cross-platform lock-free spsc-queue header-only wait-free single-producer-single-consumer thread-safe algorithms
1 source
- readme: https://github.com/cameron314/readerwriterqueue · fetched 2026-08-28 · b70c0387e1e3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cameron314/readerwriterqueue | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="cameron314/readerwriterqueue")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem