readerwriterqueue
« Back to VersTracker
Description:
Fast single-producer, single-consumer lock-free queue for C++
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ concurrency lock-free queue threading
Install: brew install readerwriterqueue
About:
Readerwriterqueue is a lightweight C++ library providing a lock-free queue optimized for single-producer, single-consumer scenarios. It offers high-performance message passing between threads with minimal overhead, using atomic operations to avoid traditional locking mechanisms. The library is header-only and suitable for real-time systems where low latency is critical.
Key Features:
  • Lock-free single-producer, single-consumer design
  • Header-only library with no external dependencies
  • Low latency and high throughput for thread communication
  • Supports both dynamic and pre-allocated fixed-size queues
Use Cases:
  • Inter-thread message passing in high-performance applications
  • Real-time data streaming between producer and consumer threads
  • Embedded systems requiring deterministic timing
Alternatives:
  • Boost lockfree – Boost provides more features but is heavier and has external dependencies
  • moodycamel::ConcurrentQueue – More general multi-producer, multi-consumer support but slightly larger footprint
Version History
Detected Version Rev Change Commit