# rigtorp/MPMCQueue

A bounded multi-producer multi-consumer concurrent queue written in C++11

Repository: https://github.com/rigtorp/MPMCQueue
Canonical: https://ross.abutalabs.com/products/mpmcqueue
Language: C++
License: MIT
License Family: permissive
Topics: cpp, cpp11, header-only, concurrency, queue
Last push: 2024-03-08T11:12:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3810, "days_push": 908, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1563, forks 204 (observed 2026-08-28T04:05:04.039113+00:00)

## What it is
A bounded multi-producer multi-consumer concurrent queue implemented as a single C++11 header. It is battle-tested in production, including the Frostbite game engine and low-latency trading infrastructure.

## Use cases
- pass messages between multiple producer and consumer threads
- build a low-latency trading system with a fast concurrent queue
- share work items across a thread pool in C++
- replace std::queue with a thread-safe bounded queue
- implement producer-consumer pipelines in game engine code

## When to choose
- you need a bounded MPMC queue in C++11 or later with minimal dependencies
- you want a header-only, production-proven concurrent queue
- low-latency or high-throughput inter-thread communication matters

## When to avoid
- you need an unbounded queue
- you need a single-producer single-consumer queue where a simpler SPSC queue suffices
- you are not programming in C++

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, performance
- platform: cpp, cross-platform
- tags: header-only, mpmc-queue, lock-free, cpp11, low-latency, algorithms

## Member repositories
- rigtorp/MPMCQueue (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:04.039113+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-30T04:00:16.343974+00:00, confidence not recorded.
  - readme: https://github.com/rigtorp/MPMCQueue (fetched 2026-08-28T04:05:04.039113+00:00, sha 138bf6b8ba85)
- Data as of 2026-08-30T08:39:29.467469+00:00.
