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
20082026
-
Here's my widely used implementation of this approach in C++: https://github.com/rigtorp/MPMCQueue
comment by rigtorp · 2026-07-09 · in Girls just wanna have fast MPMC queues with bounded waiting -
…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...
comment by rigtorp · 2021-06-29 · in Correctly implementing a spinlock in Modern C++ -
You can align and pad each ring buffer slot to the cache line size. Example https://github.com/rigtorp/MPMCQueue/blob/master/include/rig...
comment by rigtorp · 2021-06-29 · in Correctly implementing a spinlock in Modern C++