Hacker GitHub

← All repos

rigtorp/MPMCQueue

View on GitHub ↗ ★ 1,582 C++

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

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2021-06-29 · latest 2026-07-09

Mentions per year 3 mentions · busiest year 2021 (2)
20082026
  1. Here's my widely used implementation of this approach in C++: https://github.com/rigtorp/MPMCQueue
  2. …each data slot in addition to the read and write indices. I do this in my MPMC ring buffer queue: https://github.com/rigtorp/MPMCQueue/blob/master/include/rig...
  3. You can align and pad each ring buffer slot to the cache line size. Example https://github.com/rigtorp/MPMCQueue/blob/master/include/rig...