# cameron314/concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11

Repository: https://github.com/cameron314/concurrentqueue
Canonical: https://ross.abutalabs.com/products/concurrentqueue
Language: C++
License: NOASSERTION
License Family: other
Last push: 2026-07-11T17:15:50+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 45, longevity 100
- inputs: {"age_days": 4318, "days_push": 53, "days_rel": 152, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12466, forks 1929 (observed 2026-08-28T04:10:59.131972+00:00)

## What it is
moodycamel::ConcurrentQueue is a fast, industrial-strength multi-producer multi-consumer lock-free queue for C++11, implemented as a single header. It supports bulk operations, a blocking variant, and is fully portable with no assembly.

## Use cases
- pass messages between threads without locks
- implement a work queue for a thread pool
- share data between producers and consumers in C++
- replace Boost.Lockfree or TBB queues with fewer element type restrictions
- enqueue and dequeue items in bulk for high-throughput pipelines

## When to choose
- you need a fast, thread-safe MPMC queue in C++11 or later
- you want a header-only dependency with no build step
- you need bulk enqueue/dequeue performance under heavy contention
- your elements have non-trivial constructors, destructors, or assignment operators

## When to avoid
- you need strict linearizability or global FIFO ordering across coordinated producers
- you can avoid sharing data between threads entirely
- you need a single-producer single-consumer queue (a simpler specialized queue exists)
- you need a queue with built-in distributed or cross-process semantics

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, performance
- platform: cpp, cross-platform
- tags: lock-free, queue, header-only, multi-producer, multi-consumer, thread-safe, cpp11, algorithms

## Member repositories
- cameron314/concurrentqueue (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.131972+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:02.152367+00:00, confidence not recorded.
  - readme: https://github.com/cameron314/concurrentqueue (fetched 2026-08-28T04:10:59.131972+00:00, sha ca7f849b6205)
- Data as of 2026-08-30T08:39:29.467469+00:00.
