MPMCQueue is a bounded multi-producer, multi-consumer concurrent queue implemented as a C++11 header. It is designed for situations where several threads need to enqueue and dequeue items from the same fixed-capacity structure. The implementation focuses on high-throughput concurrent access while avoiding conventional queue locking patterns. It has been used in production systems including game engines and low-latency trading infrastructure. Testing combines single-threaded correctness checks with multithreaded fuzz testing under heavy contention. The queue correctly manages object construction and destruction while coordinating concurrent producers and consumers. Its small header-only design makes it straightforward to embed in performance-sensitive C++ projects.

Features

  • Bounded multi-producer multi-consumer queue
  • C++11 header-only implementation
  • Concurrent enqueue and dequeue operations
  • Fixed-capacity memory model
  • Single-threaded and multithreaded testing
  • Production use in low-latency systems

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow MPMCQueue.h

MPMCQueue.h Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MPMCQueue.h!

Additional Project Details

Operating Systems

Windows

Programming Language

C++

Related Categories

C++ Libraries

Registered

2026-09-24